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

resize GridListControl in ComboBoxExt

Thread ID:





8999 Dec 2,2003 11:27 AM UTC Dec 2,2003 12:00 PM UTC WinForms 2
Tags: GridControl
Colin Lamarre
Asked On December 2, 2003 11:27 AM UTC

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 11:45 AM UTC

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 12:00 PM UTC

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


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