<Columns> <asp:TemplateField> <ItemTemplate> <asp:LinkButton runat="server" CommandArgument='<%# Eval("Id_Question") %>' OnCommand="LinkButton_Click"> </asp:LinkButton> <asp:CheckBox ClientIDMode="Static" ID="CheckBoxItem" runat="server" Class="CheckBoxNotification" /> </ItemTemplate> </asp:TemplateField> </Columns>
for (int i = 0; i < GridView1.Rows.Count; i++) { CheckBox checkbox = (CheckBox)GridView1.Rows[i].FindControl("CheckBoxItem"); if (checkbox.Checked == true) { //I need Something like CommandArgument that indicate what CheckBox Need to Manipulate!!! } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)