DropDownList in a UltraGrid

UltraGrids in general are easier than many Epicor things to find help on - you can search online and find a lot of Infragistics documentation and discussion.

The accepted Epicor way, having said that, is as follows:

  • For any column in the grid that you would like to be a drop-down, add a Combo control of some kind elsewhere on the form and bind it to the same field. You can hide it afterwards if you don’t need it for anything else.
  • In InitializeCustomCode (or code called from there), add:
yourgrid.DisplayLayout.Bands[0].Columns["yourfield"].ValueList = yournewcontrol;
yourgrid.DisplayLayout.Bands[0].Columns["yourfield"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
yournewcontrol.ForceRefreshList();
6 Likes