The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team 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.