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,
is it possible to set the cell type for a whole
row instead of a column? For a column I do something
like this
GridTableCellStyleInfo valStyle = parentTD.Columns["Value"].Appearance.AnyRecordFieldCell;
injStyle.Format = "##.00";
Is there something similar for a whole row??
Cheers,
Markus
ADAdministrator Syncfusion Team August 12, 2005 09:44 AM UTC
You cannot set a ''rowstyle'' for abirtary records.
You can set row styles for every other record using Appearance.RecordFieldCell and Appearance.AlternateRecordFieldCell.
Also, if you can write a logical expression based on values in the record that picks out the particular reords you want to have this style, then you can add a ConditionalFormat to the TableDescriptor.ConditionalFormat collection to accomplish this.
The only way to set a style on an arbitrary record is to handle the QueryCellStyleInfo event. In your handler, you can check to see if e.TableCellIdentity.DisplayElement is a GridRecordRow and if e.TableCellIdentity.DisplayElement.ParentRecord is the arbitray record you want, then you can set the properties of e.Style to affect the look of the row.