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.
Hi I've tried to change the number of line of a combo box in a GridControl. But I never found a properties to change that. How can I change the number of row displayed, because only 6 rows is really not enough.
JJJisha Joy Syncfusion Team October 10, 2008 06:26 AM UTC
Hi Fredric,
This can be achieved by setting the DropDownRows property of the GridComboBoxListBoxPart to a specified value in the CurrentCellShowingDropDown event.
Please refer the code:
void gridControl1_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; if (cc.Renderer is GridComboBoxCellRenderer) { GridComboBoxCellRenderer dr = cc.Renderer as GridComboBoxCellRenderer; ((GridComboBoxListBoxPart)dr.ListBoxPart).DropDownRows = 12; }