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
Reset bold on all cells of an UltraWinGrid

On an updateable  UltraWinGrid, I'm changing the bold setting on certain individual cells as the user updates values.

I have provided a cancel button and if the user clicks this, I want to reset all of the bold values for every cell.

I can't find any way to do this other than looping through every cell on the grid.

I've tried using the resetbold method at various levels, but I think because I've set the value at the lowest level, then none of the overrides have an effect.

Is there any easier way to reset all cell bold values?

No Data
  • 12465
    Offline posted

    Hi James,

    My recommendation is to have two Appearance objects, one for normal text and one for bold text. When you want to make a cell bold, apply the bold appearance to that cell and add it to a List to keep track of which cells have been changed.

    When the user cancels and you want to reset all the bold values, loop through all the cells in the list and switch to using the normal appearance object for each cell.

    Please let me know if you have any questions.

No Data