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.
How do you prevent the end user from editing a grid? If have tried setting .Enabled to true, but it doesn't prevent the end user from editing a cell. I have also tried, .ReadOnly=true and it prevents all changes, even from code. Is there anyway to allow changes by code but not by the end user?
ADAdministrator Syncfusion Team February 6, 2003 07:42 PM UTC
Try .ReadOnly but when you want to make changes from code then sandwich the changes you want to make into DiscardReadOnly calls.
Example:
DiscardReadOnly = true;
// now you can make changes to readonly cells;
DiscardReadOnly = false;
Stefan