I have two fields in my datasource lets call them
dataValue and displayText.
I Bind my grid to this dataset and get two columns, I hide the dataValue column and add A ValueList to thedisplayText.Column.ValueList property to create a drop down of selectable values for my display text column. Anything I select puts the displayText of my valueList in the displayText column/cell.
Is there a way for me to simply bind the selected Value to the dataValue column?
Actually I think I need the exact opposite. Although it should be the same solution. I'm storing the selected value in the column with the list. but i also want to bind another column to the selected display text.
Hi,
Typically, your grid would not contain both fields, it only needs one. There's no reason for the grid to store both the DataValue and the DisplayText if the text is simple a lookup on the value.
All you have to do is attach a ValueList to the DataValue column in the grid. And you populate the ValueList with the DataValue/DisplayText pairs and it will handle the translation for you.