The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
our application is using a GGC which is bound to a dataset. The grid is grouped via a special column. Now we are using the QueryCellStyleInfo event to color the GroupCaptionCell. As I understand that event, its fired every time the grid is painted?
I am not sure but isn''t this a performance issue in our case? Is there a way to avoid the QueryCellStyleInfo?
ADAdministrator Syncfusion Team August 29, 2006 08:22 PM UTC
Hi,
Setting the styleinfo properties for a particular celltype in the QueryCellStyleInfo event does not cause any performance issue, because it sets style properties only on demand. For example, refer to the code snippet in the following KB article. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=219
In the event, the GroupCaptionCell is checked and colored. So, this conditional statement is executed only for the GroupCaptionCells visible in the screen.
Another way to color the GroupCaptionCell is by using following code snippet. If you trace the source code, you can trace out that this in turn used the QueryCellStyleInfo to color the cell. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionCell.BackColor = Color.Green; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Also refer to the following KB article to set different GroupCaptionRows. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=220
Best regards, Madhan
ADAdministrator Syncfusion Team August 30, 2006 07:54 AM UTC
Thank you Madhan for your fast response. I will take a closer look at your suggestions.