BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Vasanth,
Thank you for using Syncfusion Products.
We are unable to understand your query clearly and we require more information on this. Based on your update “can change an entire row forecolor”, we assume that you would like to change the foreground color of the row and it can be changed under following circumstances :
1. You can apply foreground color to particular row based on row index using RowStyle selector.
2. Selected row foreground can be changed based on selection border visibility using RowStyle and CellStyle.
We have prepared a sample with above cases. You can download the sample from the following location:
Sample: RowForeground.zip
Please refer the following UG link to know about the styling support of SfDataGrid:
Styling Rows - UG: http://help.syncfusion.com/UG/winrt/index.html#!Documents/stylingrows.htm
Style Selectors - UG: http://help.syncfusion.com/UG/winrt/index.html#!Documents/styleselectors.htm
Please refer the following KB to style the selected row or cell:
KB: http://www.syncfusion.com/kb/2542/how-to-change-background-and-foreground-for-selected-row-or-cell
Please let us know if this solution helps.
Regards,
Jayaleshwari N.
Hi Vasanth,
We have analyzed your requirement “Row Style Selector not working for template column”. It’s the default behavior that the control loaded within the DataTemplate won’t receive the foreground property value from its parent. So, we suggest you to use CellStyle Selector and Converter for Foreground property of TextBlcok to achieve your requirement.
We have modified the sample as per your requirement. You can download sample from the following location.
Sample: SfDataGridWithStackedHeaders.zip
Please let us know, if this solution helps.
Regards,
Jayaleshwari N.