foreach (GridColumn col in radGdSurvey.MasterTableView.Columns) |
{ |
if (col.ColumnType == "GridBoundColumn" && col.UniqueName == "JobsID") |
{ |
if (e.CommandName == RadGrid.EditCommandName) |
{ |
(col as GridBoundColumn).ReadOnly = true; |
col.Visible = false; |
} |
else |
{ |
(col as GridBoundColumn).ReadOnly = false; |
col.Visible = true; |
} |
} |
} |
Ok I hit my edit button on the grid, when it pops i want to make JobsID readonly in the edit form, the above does not work, I am do something wrong I just do not know what. Any help would be great.
Thx in advance