Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
675
Get selected value of dropdownlist in ultragrid
posted

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.

Parents
No Data
Reply
  • 20872
    Suggested Answer
    Offline posted

    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?

Children