We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Preventing cursor from entering cells

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?

1 Reply

AD Administrator Syncfusion Team September 11, 2003 06: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.

Loader.
Live Chat Icon For mobile
Up arrow icon