<p>I'm using the Infragistics grid and I'm having a difficult time using a drop-down list as the value selector for one of my columns.</p>

<p>I tried reading the documentation but Infragistics' documentation is not so good. I've also taken a look at this <a href="http://news.infragistics.com/forums/p/9063/45792.aspx" rel="nofollow noreferrer">discussion</a> with no luck.</p>

<p>What I'm doing so far:</p>

<pre><code>col.Type = ColumnType.DropDownList;
col.DataType = "System.String";

col.ValueList = myValueList;
</code></pre>

<p>where <code>myValueList</code> is:</p>

<pre><code>ValueList myValueList = new ValueList();

myValueList.Prompt = "My text prompt";
myValueList.DisplayStyle = ValueListDisplayStyle.DisplayText;

foreach(MyObjectType item in MyObjectTypeCollection)
{
    myValueList.ValueItems.Add(item.ID, item.Text); // Note that the ID is a string (not my design)
}
</code></pre>

<p>When I look at the page, I expect to see a drop-down list in the cells for this column, but my columns are empty.</p>

[{'answer_id': 16347, 'author': 'Erick B', 'author_id': 1373, 'author_profile': 'https://Stackoverflow.com/users/1373', 'pm_score': 2, 'selected': False, 'text': '<p>Here\'s an example from one of my pages:</p>\n\n<pre><code>UltraWebGrid uwgMyGrid = new UltraWebGrid();\nuwgMyGrid.Columns.Add("colTest", "Test Dropdown");\nuwgMyGrid.Columns.FromKey("colTest").Type = ColumnType.DropDownList;\nuwgMyGrid.Columns.FromKey("colTest").ValueList.ValueListItems.Insert(0, "ONE", "Choice 1");\nuwgMyGrid.Columns.FromKey("colTest").ValueList.ValueListItems.Insert(1, "TWO", "Choice 2");\n</code></pre>\n'}, {'answer_id': 18507, 'author': 'mbillard', 'author_id': 810, 'author_profile': 'https://Stackoverflow.com/users/810', 'pm_score': 2, 'selected': True, 'text': '<p>I\'ve found what was wrong.</p>\n\n<p>The column must allow updates.</p>\n\n<pre><code>uwgMyGrid.Columns.FromKey("colTest").AllowUpdate = AllowUpdate.Yes;\n</code></pre>\n'}, {'answer_id': 2681542, 'author': 'regor', 'author_id': 322104, 'author_profile': 'https://Stackoverflow.com/users/322104', 'pm_score': 0, 'selected': False, 'text': '<pre><code>    public void MakeCellValueListDropDownList(UltraWebGrid grid, string columnName, string valueListName, string[] listArray)\n    {\n        //Set the column to be a dropdownlist\n        UltraGridColumn Col = grid.Columns.FromKey(columnName);            \n        Col.Type = ColumnType.DropDownList;\n        Col.DataType = "System.String";\n\n        try\n        {\n            ValueList ValList = grid.DisplayLayout.Bands[0].Columns.FromKey(columnName).ValueList;\n            ValList.DataSource = listArray;\n            foreach (string item in listArray)\n            {\n                ValList.ValueListItems.Add(item);\n            }\n            ValList.DataBind();\n        }\n        catch (ArgumentException)\n        {\n\n        }\n    }\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/15219', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/810/']