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.

Setting focus

Thread ID:





28766 May 10,2005 10:19 AM May 10,2005 11:24 AM Windows Forms 1
Tags: GridControl
Scott Griswold
Asked On May 10, 2005 10:19 AM

Hello, I am using the grid control to develop a program that will allow the user to work with some cells but not with others. I know that I can set a specific cell to read only, but I do not want the user to be able to have focus on that cell. Is there a way to do this on a cell level? Sincerely, Scott Griswold

Administrator [Syncfusion]
Replied On May 10, 2005 11:24 AM

If you are using a GridControl and do not want the user to be able to click the cell at all, then you can set style.Enabled = false for the individual cells. If you want the cells to be clickable, just not see the edit cursor, you can handle the grid.CurrentCellStartEditing event, and if grid.CurrentCell.RowIndex/ColIndex point to a cell you do not want to edit, set e.Cancel = true. This should work for either a GridControl or a GridDataboundGrid.


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.