J
JLuv
i've tried this method...
int i = 0;
foreach (DataGridItem dgItem in pGrid.Items)
{
if (((CheckBox)dgItem.FindControl("check")).Checked)
{
i++;
}
}
Response.Write(i);
just to make sure that its reading the Checked bool correcty. but
Response.Write(i) always writes zero to the screen. i even went into
the debugger and it shows that no matter how many checkboxes i check,
the if statement always returns false.
any help?
int i = 0;
foreach (DataGridItem dgItem in pGrid.Items)
{
if (((CheckBox)dgItem.FindControl("check")).Checked)
{
i++;
}
}
Response.Write(i);
just to make sure that its reading the Checked bool correcty. but
Response.Write(i) always writes zero to the screen. i even went into
the debugger and it shows that no matter how many checkboxes i check,
the if statement always returns false.
any help?