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.
I have a collection of objects that is the data source for both a datagrid and a property grid. I want the properties to be read-only in property grid, but I want to be able to edit the values through the datagrid. Is there any way to do this?
VSVijayarasan Sivanandham Syncfusion Team February 3, 2022 02:40 PM UTC
Hi Nour Douffir,
Please find answer for your queries below
Queries
Solutions
I want the properties to be read-only in property grid
You can achieve the “ReadOnly for PropertyGrid” requirement by using the attributes and event as read-only property is true. We have prepared the sample to achieve the requirement. Pease find the sample from the below link,
but I want to be able to edit the values through the datagrid
Your requirement to edit data in SfDataGrid can be achieved by enable or disable the AllowEditing property in SfDataGrid. Please refer the below code snippet,