Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
Ultragrid Dropdownlist
posted
I need to display a drop downlist in ultragrid. I have written the following code in Ultragrid initialiselayout, Dim vl As ValueList If (Not e.Layout.ValueLists.Exists("MyValueList")) Then vl = e.Layout.ValueLists.Add("MyValueList") vl.ValueListItems.Add(1, "Completed") vl.ValueListItems.Add(2, "Pending") vl.ValueListItems.Add(3, "Postponed") End If e.Layout.Bands(0).Columns(11).ValueList = e.Layout.ValueLists("MyValueList") While filling ultragrid i have given, ugv.DisplayLayout.Bands(0).Columns(11) .Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList But when i click on the cell, dropdownlist is not getting displayed. Can anyone plese help me out from this issue? Thank you.
  • 469350
    Offline posted

    If the cell is not editable, then you will not even see the dropdown arrow in that cell. Can you see the dropdown arrow?

     

  • 69832
    Offline posted

    One possibility is that the cells are not editable, i.e., CellActivation is set to one of the values that prevents the cell from entering edit mode. Another possibility would be that the ValueLists collection already contains a member the a key of 'MyValueList' at the time InitializeLayout fires, thus preventing the code in that conditional from being executed. If you attach a simple sample that demonstrates the problem we can take a look.