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,
Could please tell me how can I disable a comboBox in a gridcell?
what I did is that I used e.Style.ReadOnly = true;
in Grid_ModelQueryCellInfo. but that does not disable entirely the comboBox because the user can still see the ComboBox elements even if he can not chose one.
tx
regards
ADAdministrator Syncfusion Team March 24, 2006 05:13 AM UTC
Hi,
A grid cell can be disabled by just setting the e.Style.Enabled property to false which won’t allow the user to select that cell. To allow the user to select the ComboBox type cell and make it ReadOnly and not to show the dropdown list, any one option from the below code snippet can be opted.
1) e.Style.Clickable = false;
e.Style.ReadOnly = true;
2) e.Style.ShowButtons = GridShowButtons.Hide;
e.Style.ReadOnly = true;
Let us know if you have any further queries.
Regards,
Calvin.