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
925
Change row colour based on Field value
posted

I want to change the colour of rows in grid based on the flag value in a field.  I have atleast 300 000 rows! this means that the following is not going to do the trick.

for a = 0 to UltraGrid.Rows.Count - 1  

   if Ultragrid.ActiveRow.Cells("Flag_Done").Value = "True"      

             Ultragrid.ActiveRow.Appearance.BackColor = Color.LightGreen  

  else      

            Ultragrid.ActiveRow.Appearance.BackColor = Color.white  

endif  

next

 

How can a pre-paint the rows.  The above takes to long, VERY slow

Parents Reply Children
No Data