New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.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.