BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Dim i As Int16 = gdItems.GridBoundColumns.IndexOf(Me.gdItems.Binder.InternalColumns("ItemID")) If gdItems.CurrentCell.ColIndex = i Then MsgBox("Can''''t Edit this cell") e.Cancel = True End Iftry
Dim i As Int16 = gdItems.Binder.NameToColIndex("ItemID") If gdItems.CurrentCell.ColIndex = i Then MsgBox("Can''''t Edit this cell") e.Cancel = True End IfAnother options is to just set gdItems.Binder.InternalColumns("ItemID").StyleInfo.ReadOnly = True in Form.Load. If you never want a cell in the column to become teh currentcell, you can also set ").StyleInfo.Enabled = False. Or, you could set ").StyleInfo.CellType = "Static". This way you could do things by setting a property instead of handling an event.