Hi,
I am not able to add ComboBox in ultragrid column.
I tried to set the Style as Dropdown, but it's not working.
Only button is working in that way.
Please help me. It's urgent
If I want to make 1 column of the gird become dropdown and the data for the dropdown will be get from a datasource? Is that have others code for it?
HOWTO:What is the best way to place a DropDown list in a grid cell?
You have to assign a ValueList to the column.
Example:void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e){ foreach( UltraGridColumn column in e.Layout.Bnds[0].Columns ) { string key = column.Key;
switch ( key ) { case "myColumn": ValueList vl = new ValueList(); vl.ValueListItems.Add( 1, "One" ); vl.ValueListItems.Add( 2, "Two" ); vl.ValueListItems.Add( 3, "Three" ); column.ValueList = vl; break; } }}