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
105
How can I reformat certain cells in an UltraGrid to display a string instead of an integer?
posted

Depending upon the value in another cell of the same row of an ultragrid, I would like to interpret the integer value of the cell as a string of 4 characters in length, otherwise I would like to display the cell contents as an integer  I looked at the data filter example on the web site, but could not adapt it to my requirements.  Is a data filter an appropriate choice for conditionally reformatting the cell in this instance?

Thanks... 

 

  • 469350
    Verified Answer
    Offline posted

    Hi,

        I'm not sure I understand exactly what you want, but it sounds like a DataFilter is the right way to go. You would need to handle the EditorToDisplay and DisplayToEditor conversions.