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

resize GridListControl in ComboBoxExt

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

2 Replies

AD Administrator Syncfusion Team 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; } }


CL Colin Lamarre December 2, 2003 07:00 AM

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

Loader.
Live Chat Icon For mobile
Up arrow icon