Hello,
I am tying to reproduce the problem locally, but unfortunately am not able to - it works great for me. Here is the code I am using - a column of type DropDownList and I am initializing its ValueList in the grid InitializeLayout event:
<igtbl:UltraGridColumn BaseColumnName="CompanyName" IsBound="True"
Key="CompanyName" Type="DropDownList">
<Header Caption="CompanyName">
<RowLayoutColumnInfo OriginX="1" />
</Header>
<Footer>
<RowLayoutColumnInfo OriginX="1" />
</Footer>
</igtbl:UltraGridColumn>
protected void UltraWebGrid1_InitializeLayout(object sender, LayoutEventArgs e)
{
UltraGridColumn c = UltraWebGrid1.Columns.FromKey("CompanyName");
c.ValueList.ValueListItems.Add("", "");
c.ValueList.ValueListItems.Add("1", "1");
c.ValueList.ValueListItems.Add("2", "2");
c.ValueList.ValueListItems.Add("3", "3");
}
You can seein the screenshot that I am able to get the empty string display fine and on selection, it is correctly intesrted in the cell. What am I missing?