Imports Infragistics.Win Private Sub CreateValueList() Dim list As ValueList = New ValueList() list.ValueListItems.Add(1, "One") list.ValueListItems.Add(2, "Two") list.ValueListItems.Add(3, "Three") list.ValueListItems.Add(4, "Four") list.Appearance.BackColor = Color.Green list.SelectedIndex = 2 list.SortStyle = ValueListSortStyle.AscendingByValue Me.UltraGrid1.DisplayLayout.Bands(0).Columns(0).ValueList = list Me.UltraGrid1.DisplayLayout.Bands(0).Columns(0).Style = UltraWinGrid.ColumnStyle.DropDownList End Sub
using Infragistics.Win; private void CreateValueList() { ValueList list = new ValueList(); list.ValueListItems.Add(1,"One"); list.ValueListItems.Add(2,"Two"); list.ValueListItems.Add(3,"Three"); list.ValueListItems.Add(4,"Four"); list.Appearance.BackColor = Color.Green; list.SelectedIndex = 2; list.SortStyle = ValueListSortStyle.AscendingByValue ; this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].ValueList = list; this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].Style = UltraWinGrid.ColumnStyle.DropDownList ; }