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 grid will a cell that is a "ComboBox" celltype, however I want to prevent the user from dropping the droplist. Essentially the grid is only for display purposes and the user has to double click a row to edit the row in a form. If they can drop the droplist it is confusing for them.
Thanks,
Sean
ADAdministrator Syncfusion Team January 30, 2003 05:14 AM
You can disable dropping down the combobox with the GridStyleInfo.Clickable property.
The ShowButtons property lets you also hide the button.
Stefan
SGSean GreerJanuary 30, 2003 11:20 AM
I've attempted to prevent the combobox from dropping by setting the GridStyleInfo.Clickable to false, but this does not seem to have any affect. Here is the code that I'm using:
gbc = new GridBoundColumn();
gbc.MappingName = "Role";
gbc.HeaderText = "Role";
gbc.StyleInfo.CellType = "ComboBox";
gbc.StyleInfo.ExclusiveChoiceList = true;
gbc.StyleInfo.Clickable = false;
gbc.StyleInfo.DisplayMember = "Description";
gbc.StyleInfo.ValueMember = "RoleCode";
gbc.StyleInfo.DataSource = GetRoleCodes();
I'm using version 1.5.1.1 of the grid. Any thoughts?
Sean
ADAdministrator Syncfusion Team January 30, 2003 02:51 PM
Sorry - my mistake. I wasn't aware that you can still dropdown by clicking inside the cell text or using ALT-Down Arrow.
What you can do instead is listen to the CurrentCellShowingDropDown event. In your event handler you can set the Cancel property of the EventArgs.
Stefamn