fiogf49gjkf0d Thanks Mike.
I looked at the events available and I didn't find the "BeforeEdit" event, there was however an "OnEdited".
Below is the code I used, I tried making 2 of the columns (which are checkboxes) readonly but it's not working:
Function DataGrid1Edited(Sender, PrimaryKeyValue, FieldName, Value)
If Datagrid1.GetCurrentField("CARRIER") = "INACTIVE" then datagrid1.Columns.Item(1).ReadOnly = True datagrid1.Columns.Item(2).ReadOnly = True Else datagrid1.Columns.Item(1).ReadOnly = False datagrid1.Columns.Item(2).ReadOnly = False End If |