How could you guide me on how to fill out a datagridview that I have on asp.net?
<asp:GridView ID="GridView1" runat="server" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" ShowHeaderWhenEmpty="true" Width="646px">
<Columns>
<asp:BoundField HeaderText="columna1" />
<asp:BoundField HeaderText="columna2" />
<asp:BoundField HeaderText="columna3" />
<asp:BoundField HeaderText="columna4" />
</Columns>
</asp:GridView>
with a method of the GetProcesses class in c # like this:
Process[] processlist = Process.GetProcesses();
foreach(Process theprocess in processlist){
Console.WriteLine("Process: {0} ID: {1}", theprocess.ProcessName, theprocess.Id);
}
Console.ReadLine();
so that what it shows in console is filled in the datagridview, thanks.