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.
Unfortunately, activation email could not send to your email. Please try again.

MultiColumnComboBox Grid Width

Thread ID:

Created:

Updated:

Platform:

Replies:

33833 Aug 26,2005 12:35 PM Sep 1,2005 11:11 AM Windows Forms 5
loading
Tags: Tools
Ivan
Asked On August 26, 2005 12:35 PM

Hi, When I hide the last column of the grid of the MutiColumnComboBox, the grid is shown with an excessive width. How can I fix that? Please see attached screenshot. Thank you mccb_8721.zip

Anupama Roy [Syncfusion]
Replied On August 29, 2005 04:44 AM

Hi Ivan, The Width of the displayed column can be set using the code snippet shown: this.multiColumnBoundCombo.ListBox.Grid.Cols.Hidden[2]=true; this.multiColumnBoundCombo.ListBox.Grid.ColWidths[1]=this.multiColumnBoundCombo.DropDownWidth; Please let me know if this meets your requirement. Regards, Anu.

Ivan
Replied On August 29, 2005 10:57 AM

This is opposite to what I''m trying to accomplish. My grid has more then 1 visible column and I need the grid to shrink, not to expand the last column. Please advise. Thank you

Anupama Roy [Syncfusion]
Replied On August 30, 2005 05:12 AM

Hi Ivan, After hiding the undesired columns,We need to Set column width of other columns to occupy the entire dropdown width.I am attaching a sample here. multicolumcombobox_5599.zip Let me know if this satisfies your requirement. Regards, Anu.

Ivan
Replied On August 30, 2005 10:41 AM

Hi I''m sorry, but the example you have provided does not help me. Please read carefully my previous post and take a look at the attached screenshots. Thank you. mccb1_1_8906.zip mccb1_1_1628.zip

Administrator [Syncfusion]
Replied On September 1, 2005 11:11 AM

Hi Ivan, Please set the HScrollPixel property of the grid to be true to fix this problem. multiColumnComboBox2.ListBox.Grid.HScrollPixel = true; The difference in behavior when this property is set to true, is that the user has finer control when scrolling along the horizontal axis. When this property is set to false, a column is always aligned at the left when scrolling. Thanks, Davis

CONFIRMATION

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.

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.

;