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.
Contrary to what says the documentation, it appears that the properties RowStyles and ColumnStyles do not exist in the WPF GRidControl (Essential 7.4). At least, I cannot find them with the
Contrary to what says the documentation, it appears that the properties RowStyles and ColumnStyles do not exist in the WPF GRidControl (Essential 7.4). At least, I cannot find them with the Object Browser.
How do I define a style for Rows and/or Columns so that I can overide it for specific cells in the QueryCellInfo handler?
Thanks in advance. Philippe
GKGanesan K Syncfusion Team December 9, 2009 05:30 PM UTC
Hi Philippe,
Thanks for using syncfusion products.
There is no specific RowStyle or ColumnStyle in our GridControl. If you want to override specific cell style, you have to listen the QueryCellInfo event and set the style for each cell.
You can use the following code snippet for applying RowStyle and / or column style.
[C#] grid.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo);
void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { //// This will apply style for the second row. if (e.Cell.RowIndex == 2) { e.Style.Background = Brushes.BlanchedAlmond; }
if (e.Cell.ColumnIndex == 4) { e.Style.Background = Brushes.LightBlue; } }