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.
I have got a gridgroupingcontrol and want to set the whole row for a special row header condition.
Now I thought I could solve this by using the GridConditionalFormatDescriptor - something like this:
// Set conditional style for rows
GridConditionalFormatDescriptor fd = new GridConditionalFormatDescriptor("MyCheck");
fd.Expression = "[Status] LIKE ''Finished''";
GridFontInfo actFont = fd.Appearance.AnyCell.Font;
fd.Appearance.AnyCell.Font.Bold = true;
But now I am wondering what should be entered in the expression property to match the row header. For a simple column like ''Status'' there is no problem - but how can i access the rowheader?
Kind regards
Franz
ADAdministrator Syncfusion Team August 16, 2005 07:55 AM UTC
How are you putting the Text into the row header cell? By default, the grouping grid does not put text in the row header.
Are you using QueryCellStyleInfo to do this? If so, you can use QueryCellStyleInfo to conditionally set the style of all the cells in the row as well. You would check if e.TableCellIdentity.DisplayElement is your row with the special header, and if so the set e.Style.Font.Bold =true.