My ultra grid contains a couple of dropdownlists with text and value fields.
ultraGrid1.DisplayLayout.Bands[0].Columns["Column"].EditorComponent = cbColumns; ultraGrid1.DisplayLayout.Bands[0].Columns["Column"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownValidate;
When I get the value of the cell, it returns the selected text.
columnname = row.Cells["COLUMN"].Value.ToString();
How can I get the selected value instead of text?
Thank you.
Hello bdisk,
I have tried this and it works fine for me. I assume that you are using UltraCombo control which has DisplayMember and ValueMember properties set on different columns of the DataSource.If that is correct when you are comparing the Value and the Text of any cell they match with the corresponding value and text of the row that is selected in the UltraCombo control itself.
Could you please let me know when you are verifing the Value of the desired cell?
This was a mistake on my part. I had mixed up the DisplayMember and ValueMember fields. Thanks.