QueryCellStyle only at first load?

I need to use querycellstyle event do change the color of certain cells given on the value of other fields on the same row.

There are only around 30 row in mu grid but only around 15 can be displayed given the vertical space I have on my form.

So when I scroll the grid up and down the querycellstyle event run for every displayed row and this creates performance problems on some slow machines.

Is it possible to format all the cells of the grid (even those not displayed) only when loading records or when changing values on a certain row?

Regards

Michele


1 Reply

RM Rabina Murugan Syncfusion Team June 18, 2025 12:44 PM UTC

Hi  Michele,


We have analyzed the reported scenario. We would like to clarify that having only 30 rows in the grid should not cause performance issues. As you mentioned, the slowness appears only on some slow machines, so the performance impact is likely due to the machine itself, not the control.


Also, conditional formatting using the QueryCellStyle event cannot be applied at initial load for rows that are not visible, because painting occurs only when the rows are displayed.


We appreciate your understanding.


Please let us know if you need any further assistance.


Regards

Rabina M


Loader.
Up arrow icon