I have the following code that needs to execute when the checkbox is clicked. Right now it does nothing and that is wrong.
When the user click the checkbox all items in the Gridview should be checked, please help me fix my code. Thank you.
Code behind:
protected void cbSelectAll_CheckedChanged(object sender, EventArgs e)
{
foreach (GridViewRow row in gvName.Rows)
{
CheckBox chkcheck = (CheckBox)row.FindControl("ckbox");
if (cbSelectAll.Checked)
&nbs ...
Go to the complete details ...