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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting focus

Thread ID:





28766 May 10,2005 02:19 PM UTC May 10,2005 03:24 PM UTC WinForms 1
Tags: GridControl
Scott Griswold
Asked On May 10, 2005 02:19 PM UTC

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 03:24 PM UTC

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon