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.
Syncfusion Feedback

resize GridListControl in ComboBoxExt

Thread ID:

Created:

Updated:

Platform:

Replies:

8999 Dec 2,2003 06:27 AM Dec 2,2003 07:00 AM Windows Forms 2
loading
Tags: GridControl
Colin Lamarre
Asked On December 2, 2003 06:27 AM

Hi, I have a comboboxext with a drop down gridlistcontrol. It automatically resizes the grid width to the size of the combobox. Is there a way to customize the width? TIA

Administrator [Syncfusion]
Replied On December 2, 2003 06:45 AM

You can change the size of the dropdown in this event. Is this what you wanted?
private void comboBoxExt1_DropDown(object sender, System.EventArgs e)
{
	this.comboBoxExt1.PopupContainer.Width = 1200;
}
Or, are you trying to change the colwidth of a column in the GridListControl. If so, you would have to handle the QueryColWidth event on the embedded Grid. this.gridListControl1.Grid.QueryColWidth += new GridRowColSizeEventHandler(grid_QueryColWidth); void grid_QueryColWidth(object sender, GridRowColSizeEventArgs e) { //size col 2 if(e.Index == 2) { e.Size = 400; e.Handled = true; } }

Colin Lamarre
Replied On December 2, 2003 07:00 AM

the popupcontainer.width is what I was looking for, thanks!

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.

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

;