We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

combo box is taking the size of the cell in grid grouping control

Cell type is of combo box. When the cell size is increased in the grid grouping control the combo box is also taking the size of the cell. THat is the cell size is becoming the default size of the control. can't we fix the size of the control inside the cell so that it does not take the size of the cell.

We are using 5.1.0.51 version. Visual Studio 2005

1 Reply

RA Rajagopal Syncfusion Team June 8, 2007 06:33 PM UTC

Hi Asit,

This is the default behavior. If you want to control the size of the combobox that is displayed inside the cell, then you can try adjusting the BorderMargins property. Please try the below code snippets.

// to have the combobox displayed centered always inside the cell
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.BorderMargins.Left = 20;
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.BorderMargins.Right = 20;

// to have the combobox left aligned inside the cell
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.BorderMargins.Right = 40;

// to have the combobox right aligned inside the cell
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.BorderMargins.Left = 40;

Let us know if you have any further questions.
Regards,
Rajagopal

Loader.
Live Chat Icon For mobile
Up arrow icon