I want to prevent users from editing Column 0 in my dataGrid.
This is the code I use to prevent it.
Private Sub grdDataGrid_ColEdit(ByVal ColIndex As Integer)
If ColIndex = 0 Then
MsgBox "U may not change this column"
But I do want to allow them to edit col 0 when they are entering a new record ( editing col 0 of the last row )
How can this be done?