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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





62135 Jun 8,2007 10:47 AM UTC Jun 8,2007 06:33 PM UTC WinForms 1
Tags: GridControl
Asit Kumar kabi
Asked On June 8, 2007 10:47 AM UTC

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 version. Visual Studio 2005

Rajagopal [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon