Category / Section
How to change the size of a ComboBox button in WinForms GridControl?
1 min read
Change the size of combobox button
You can change the size of a ComboBox button by changing the ButtonBarSize in the cell model.
C#
GridComboBoxCellModel model = this.gridControl1.CellModels["ComboBox"] as GridComboBoxCellModel; //Change the button size of the ComboBox in a cell model.ButtonBarSize = new Size(8, 8);
VB
Dim model As GridComboBoxCellModel = TryCast(Me.gridControl1.CellModels("ComboBox"), GridComboBoxCellModel) 'Change the button size of the ComboBox in a cell model.ButtonBarSize = New Size(8, 8)
Figure 1: GridControl with changed ComboBox button size
Samples: