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
1175
Clearing cell coloring
posted

I format grid cells based on a value, like a cell in column 1 greater than 90 would be green, but then I have to clear all the formatting and I use this code

foreach (UltraGridRow ugr in ugCurrentGrid.Rows)

{

foreach (UltraGridCell ugc in ugr.Cells)

{

ugc.Appearance.BackColor = Color.Empty;ugc.Appearance.ForeColor = Color.Empty;

}

}

 my problem is that on grid with a good amount of rows and columns it takes the apps memory usage out of control and never releases it, is there any better alternative to clearing the formatting of a grid?