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: Setting Column Width

Thread ID:

Created:

Updated:

Platform:

Replies:

22077 Dec 2,2004 09:57 AM Dec 2,2004 06:50 PM Windows Forms 1
loading
Tags: Tools
Ben Waters
Asked On December 2, 2004 09:57 AM

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 06:50 PM

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.

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.

;