12 years ago
UltraGrid control - Cell with Combobox - How to get displayed text
Hi all,
I'm currently dealing with an application that has an UltraGrid control. One of its column allows the user to change the value using a combobox. For validation purposes, I'd like to get the displayed text.
I tried something like
var myGrid = Aliases.<Name Mapping>; // Use a name mapping for an UltraGrid control
var myValue;
myValue = myGrid.wValue(0, "Name").OleValue; // "Name" is the column ID
In this case, myValue will be equal to an integer, which is the index of the combobox item. How can I get the displayed text instead?
Thank you
I'm currently dealing with an application that has an UltraGrid control. One of its column allows the user to change the value using a combobox. For validation purposes, I'd like to get the displayed text.
I tried something like
var myGrid = Aliases.<Name Mapping>; // Use a name mapping for an UltraGrid control
var myValue;
myValue = myGrid.wValue(0, "Name").OleValue; // "Name" is the column ID
In this case, myValue will be equal to an integer, which is the index of the combobox item. How can I get the displayed text instead?
Thank you