Dear Friends
I Have an DataGrid Web Control in my .aspx page.
This Control have 4 columns the first one have a checkbox input.
the second one have only a text that show any information
the third column have only text and the number four column too.
Please see the code of my control in .aspx page:
<asp:datagrid id="dtgDistribuidores" runat="server" Width="100%" CellSpacing="1" CssClass="datagrid" AutoGenerateColumns="False">
<AlternatingItemStyle CssClass="rowAlt"></AlternatingItemStyle>
<ItemStyle CssClass="row"></ItemStyle>
<HeaderStyle CssClass="header"></HeaderStyle>
<Columns>
<asp:TemplateColumn HeaderText="ELEJIR">
<ItemTemplate>
<input type="checkbox" id="cbElejirEmpresa" runat="server" title="Elejir" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="CODIGO_EMPRESA" HeaderText="Código" Visible="False"></asp:BoundColumn>
<asp:BoundColumn DataField="IDENTIFICACION" HeaderText="RUC"></asp:BoundColumn>
<asp:BoundColumn DataField="NOMBRE_EMPRESA" HeaderText="EMPRESA"></asp:BoundColumn>
</Columns>
</asp:datagrid>
I have the c# code behind the aspx page and I need process the data for each row in the DataGrid component
private void btnGuardar_Click(object sender, System.EventArgs e)
{
}
Please I need your help, Please tell me how I can:
1) Get the data from the component for each row in a for cycle
2) I want to precess the rows that are checked in the DataGrid Web control How I can do this.
Thanks in advance
Leonardo Ayala R.