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

MultiColumnComboBox: Setting Column Width

Thread ID:





22077 Dec 2,2004 02:57 PM UTC Dec 2,2004 11:50 PM UTC WinForms 1
Tags: Tools
Ben Waters
Asked On December 2, 2004 02:57 PM UTC

I am trying to set the width of one of my columns to a wider width that it currently has. I am currently using "Me.m_descriptiveDataTemplate.ListBox.Grid.Model.ColWidths(1) = 25" to reduce the size of column 1 but when I use "Me.m_descriptiveDataTemplate.ListBox.Grid.Model.ColWidths(2) = 500" the column widht does not increase. I think that this is limited by the size of the underlying grid or list box not being wide enough but I have not been able to change the width of either of those items. I have also tried "Me.m_descriptiveDataTemplate.ListBox.AutoSizeColumns = True" but this had no effect. Can you suggest anything I can do to make this work? Thanks, Ben Waters City Of Scottsdale, Court

Administrator [Syncfusion]
Replied On December 2, 2004 11:50 PM UTC

Hi Ben, Please refer to the MultiColumnComboBox test sample attached here. It has 2 columns in its dropdown whose width is adjusted so that they occupy the entire width of the dropdown equally. // Set column width to occupy the entire dropdown width this.multiColumnComboBox1.ListBox.Grid.Model.ColWidths[2] = this.multiColumnComboBox1.Bounds.Width/2; this.multiColumnComboBox1.ListBox.Grid.Model.ColWidths[3] = this.multiColumnComboBox1.Bounds.Width/2; Refer to the sample and let me know if you need further assistance. We appreciate your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon