You can apply the C# foreach loop to loop over each row item of GridView control and use the C# FindControl method to get the checkbox control placed inside the GridView control. Set the Checked property of each checkbox retrieved using FindControl method from each row of GridView equal to true that will select all the checkboxes placed inside the GridView control.
C# Methods Used
1. C# foreach loop
2. FindControl method
http://programming.top54u.com/post/ASP-Net-GridView-Checkbox-Select-All-using-C-sharp.aspx
C# Methods Used
1. C# foreach loop
2. FindControl method
http://programming.top54u.com/post/ASP-Net-GridView-Checkbox-Select-All-using-C-sharp.aspx
Comments
Post a Comment