king vel

king vel

  • NA
  • 3
  • 0

datagrid

Jan 29 2009 6:34 AM
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...


Answers (2)