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.
Is there a way to change the background color of a row in sfDatagrid in the code behind not in xaml. When a data has the same number it has the same color.
SRSivakumar R Syncfusion Team December 2, 2015 07:06 PM UTC
Hi Bryce,
You can apply style to SfDataGrid rows using SfDataGrid.RowStyle and SfDataGrid.RowStyleSelector properties by creating style for VirtualizingCellsControl. Refer the below KB for more information, https://www.syncfusion.com/kb/3176/
Either you can use StyleSelector or change the Background property using Converter in code behind to achieve your requirement
Thanks, Sivakumar
Need More Help?
Get personalized assistance from our support team.