How to Css in Syncfusion.Blazor.Grids

How do I color CSS rows in a grid?


1 Reply

MS Monisha Saravanan Syncfusion Team July 10, 2023 01:39 PM UTC

Hi Qu?c Duong,


Query: “How do I color CSS rows in a grid?”


We suspect that you are trying to apply color to the Grid Rows. If so we would like to inform that we can customize the appearance of a Grid row by using the RowDataBound event. The RowDataBound event triggers for every row and in the event handler, we will get the RowDataBoundEventArgs that contains details of the row and we can add custom CSS class as per our requirement to customize corresponding rows. We have already documented this in the below UG section. Kindly refer the below documentation.


Reference: https://blazor.syncfusion.com/documentation/datagrid/row#row-customization


If we misunderstood your query or if you have further queries then kindly get back to us with additional information.


Regards,

Monisha


Loader.
Up arrow icon