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...
Datagrid
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sylwester16 reputationPosted Feb 2, 2009, 4:24 AM EST
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.
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Feb 3, 2009, 11:55 AM EST
Hi
Check out the below link
http://www.dotnetjohn.com/articles.aspx?articleid=51
Thanks -- Vj
http://dotnetvj.blogspot.com