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
3166
Create a new row from existing row
posted

We have a functionality where we create a new from existing (selected) row. We use the UltraGridRow object to get the values from for the existing row. This works fine except for column with UltraComboEditor. In this case, cell.Value returns the DisplayText rather than the DataValue.

How can I get value from the cell?

Example cell value could be 1,2,3

ComboEditor datasource:
Value, Description
1, One
2, Two
3, Three

Currrently cell.Value return One, Two, Three instead I want 1,2,3 to store it correctly in database.

 

  • 469350
    Offline posted

    The Value property of the cell returns the underlying value from the data source. There is no reason I can think of why it would be returning strings in this case. Can you duplicate this in a small sample project?

    Incidentally, why are you using an UltraComboEditor in the cell?