Click here to Skip to main content
15,908,843 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
i dont English Very Well
Excusme me!
i have one GridView inside it CheckBox

XML
<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>



and ServersideCode is :

C#
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!!!

         }
     }


please Help Me Its Very Necessary!Thanks so much
Posted

1 solution

Set autopostbak property of the checkbox to true;
 
Share this answer
 
Comments
Seyed Ahmad Mirzaee 4-Sep-12 3:03am    
Not Any Way?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900