Friday, July 30, 2010

Retrieving the checked elements from the RADGrid

foreach (GridDataItem dataitem in radViewUsers.Items)
{
CheckBox chkbox = (CheckBox) dataitem.FindControl("cbSelect");

if (chkbox.Checked)
{
userName = dataitem["UserName"].Text;
Email = dataitem["Email"].Text;
}

}

No comments:

Post a Comment