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.
Unfortunately, activation email could not send to your email. Please try again.

Preventing cursor from entering cells

Thread ID:

Created:

Updated:

Platform:

Replies:

7074 Sep 11,2003 05:34 AM Sep 11,2003 06:28 AM Windows Forms 1
loading
Tags: GridControl
Charles Hanson
Asked On September 11, 2003 05:34 AM

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?

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;