Hi,
I need to loop thru radgrid columns and if they allow update, I need to make it as read only. My grid has mixed type of columns with bound columns and Template columns with Textboxes. All the columns in grid are readonly except Template columns. We allow user to enter data into textboxes. Under certain logic, I need to make entire grid as read only. This check needs to be done out of Radgrid events.
something like this:
foreach (GridColumn gc in RadGrid1.Columns)
{
if (gc.AllowUpdate == true)
gc.AllowUpdate = false;
gc.cell.style = "disablecell";
}
Please let me know how to do it.
T
I need to loop thru radgrid columns and if they allow update, I need to make it as read only. My grid has mixed type of columns with bound columns and Template columns with Textboxes. All the columns in grid are readonly except Template columns. We allow user to enter data into textboxes. Under certain logic, I need to make entire grid as read only. This check needs to be done out of Radgrid events.
something like this:
foreach (GridColumn gc in RadGrid1.Columns)
{
if (gc.AllowUpdate == true)
gc.AllowUpdate = false;
gc.cell.style = "disablecell";
}
Please let me know how to do it.
T