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 set the background of a row in a datagrid based on a criteria in the datasource at runtime? Let say, i want to color all rows with "updated" column value = true to blue. How can I accomplish this?
ADAdministrator Syncfusion Team March 18, 2005 04:16 PM UTC
Here is a KB discussing how to go about this.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=84&catId=11
In your PrepareViewStyleInfo, you would need to check your criteria based on e.RowIndex and e.ColIndex, and then conditionally set e.Style.BackColor.
FHFaraz HaqueMarch 19, 2005 12:02 AM UTC
Thanks..thats works for me.. Does the same apply to grouping grid?
>Here is a KB discussing how to go about this.
>http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=84&catId=11
>
>In your PrepareViewStyleInfo, you would need to check your criteria based on e.RowIndex and e.ColIndex, and then conditionally set e.Style.BackColor.
ADAdministrator Syncfusion Team March 19, 2005 01:32 AM UTC
With a groupinggrid, you can probably use ConditionalFormats. These are discussed in this forum thread.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=19910