Hi,
I wanted to set a cell in the template add row to be editable but once it is committed as a regular row, the cell should not be editable. I am not able to distinguish between the two types of rows. Any ideas on how this could be done?
Thanks
shyakaster said:Is it possible to have a C# version of this..?
if (!e.Cell.Row.IsTemplateAddRow){ if (e.Cell.Column.Key == "YourNonEditableColName") { e.Cancel = true; }}
Is it possible to have a C# version of this..?
That's oe way to do it. You could also use the Activation property on the cell and set it inside the InitializeRow event.
hi
can use the before cell activate event and check for the exact cell (col and row )
If not e.Cell.Row.IsTemplateAddRow Then
If e.Cell.Column.Key = "YourNonEditableColName" Then
e.Cancel = True
End If