i not able to find the check box is checked or not present inside the grid view...
foreach (DataGridItem i in DataGrid1 .Items )
{
CheckBox chk = (CheckBox ) i.FindControl ("chkbox");
if (chk.Checked )
{
dirid = ((Label)i.FindControl("lblid")).Text;
str += dirid + ",";
boolchk = true ;
}
}
i used this but it is not working...
how can i do this...
Loading
Vijaya KadiyalaPosted Feb 3, 2009, 4:55 PM
Hi
Check out the below link
http://www.dotnetjohn.com/articles.aspx?articleid=51
Thanks -- Vj
http://dotnetvj.blogspot.com
SylwesterPosted Feb 2, 2009, 9:24 AM
Do you want find changes made by user in the DataGridView or you want to iterate each cell in the grid?
Try to use OnValidation event to obtain changes made in the grid. I think it's not good solution to iterate each cell.