curently, I am populating a ValueList at runtime with the following code:
-----------------------------------------------------------------
Dim
vlistManager As New ValueList(True)Dim vlistItem As ValueListItem
vlistItem = New ValueListItem("Manager Preliminary", 1)vlistManager.ValueListItems.Add(vlistItem)vlistItem = New ValueListItem("Manager Final", 2)vlistManager.ValueListItems.Add(vlistItem)
in my design time code, I have the following set for the column:
-----------------------------------------------------------------<igtbl:UltraGridColumn AllowResize="Free" AllowUpdate="Yes" BaseColumnName="name" HeaderClickAction="SortSingle" IsBound="True" Key="name" AllowRowFiltering=false Type=DropDownList DataType="System.Int32"><Header ClickAction="SortSingle" Caption="Preference"><RowLayoutColumnInfo OriginX="3" /></Header><Footer><RowLayoutColumnInfo OriginX="3" /></Footer></igtbl:UltraGridColumn>
so, my column is correctly set at type=DropDownList, and the ValueList has a number as value, and text as the display.
Here is the problem, whent the grid initially is databaound in page_load, it loads in with the correct column bound information, and the correct text shows up... yet if I go to update a row, and DON'T update this column via the pulldown, on post back, I'm getting the string "Manager Final" or "Manager Preliminary" from the:GridRow.Cells(19).TextGridRow.Cells(19).GetTextGridRow.Cells(19).Valuecalls. Which is wrong based on what I assigned into the ValueList above... I have a number as the Value, and the name of that value (Manager Final) as the text. If I change the dropdown value for the row, then submitGridRow.Cells(19).Text = "Manager Final"GridRow.Cells(19).GetText = "Manager Final"GridRow.Cells(19).Value = "1"
I get what I am expecting, which si the Value to come back from the value field...how can I get the number to come back as the value instead of the text without the user changing the value in the column?
Thanks,Mike