Articles in this section
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)

 

GridControl with changed combobox button size

Figure 1: GridControl with changed ComboBox button size

Samples:

C#:  ComboButtonSizeChange

VB: ComboButtonSizeChange

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied