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.
Hi!
I would like to to decide the group caption text appearance based on the actual data in the grouping columns. For example, if a grouping column contains a specific value the caption text for that group shall differ from the other groups. Is this possible?
I know I can achieve this by adding an unbound column, building the display text and then group by this column - but I was hoping to avoid this.
Regards,
Sigurd Ringbakken
ADAdministrator Syncfusion Team March 8, 2005 09:28 AM UTC
You can also do it using QueryCellStyleInfo. There if(e.Style.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell) then set e.Style.Text to what you want. You can use code like this to get at th egroup.
GridCaptionRow capRow = e.Style.TableCellIdentity.DisplayElement as GridCaptionRow;
Group g = capRow.ParentGroup;