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
1445
How to set the Value of a value list?
posted

I am using the UltraGrid. I have a column that has a style type of dropdown list. That list has a valuelist that is tied to ultra drop down. I can get everything to come up ok. But I run into an issue when another column sets that value. How do I set that dropdownlist for that column in the grid so it shows the text of the dropdown and the not the key.  I started out set .Value and that did not work.

  • 71886
    Offline posted

    Hello apalcer,

    I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.

  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I'm not sure I understand your question.

    IF you have a ValueList attached to a grid column (or cell), then Value of the grid cell is matched up to the DataValue of one of the items on the list.

    So, for example, if you have a ValueList like this:

    DataValue     DisplayText

    1                     "Apple"

    2                     "Banana"

    3                     "Cherry"

     

    To "select" an item from the ValueList in code, you would set the Value property of the cell to 1, 2, or 3.