I have a grid with about 25 columns, only 6 of which are editable. I would like the user to be able to tab across the grid and have the cursor only stop in those cells that are editable, instead of in each cell as it does by default. What would be the best way to accomplish this?
ADAdministrator Syncfusion Team September 11, 2003 05:28 AM
If you set the GridStyleInfo.Enabled = False for each column you want to skip, then that column cannot become the current cell either by clicking it or using the keyboard to move things.
In a GridDataBoundGrid, you would set either the this.grid.GridBoundColumns[nCol].StyleInfo.Enabled property or the grid.Binder.InternalColumns[nCol].StyleInfo.Enabled property depending upon whether you had explcitly added GridBoundColumns or not. For a GridControl, you would set the this.grid.ColStyles[nCol].Enabled property.