GridListControl width

Hi, On a form, I have a comboboxbase that works with a gridlistcontrol (arraylist). 1 - How can I display the gridlistcontrol with a width greater than the comboboxbase and 2 - also avoid the horiz. scrollbar to be displayed ? Thanks, Eddy Suite Vers. 2.0.5.1

1 Reply

AD Administrator Syncfusion Team May 14, 2004 12:41 PM UTC

This code works in the sample, Grid\Samples\Quick Start\ComboBoxBaseGridDemo, to set the width of the dropdown.
private void comboBoxBase1_DropDown(object sender, System.EventArgs e)
{
	this.textLog.Text += "Event: DropDown\r\n";
	this.comboBoxBase1.PopupContainer.Width = this.gridListControl1.Grid.Model.ColWidths.GetTotal(0, this.gridListControl1.Grid.Model.ColCount) + 4 + SystemInformation.VerticalScrollBarWidth;
}
>/pre>
            

Loader.
Up arrow icon