SelectedRow Style overriding cell style

When datagrid is in Row Navigation and SelectionMode as Single. 


When a row is selected it is override the CellStyle of TextColor. How to keep Same Text Color or make the SelectedRow border style change such that background and foregroundcolor remain the same for the cell.


Image_5954_1724267760128


thanks


1 Reply

SD Sethupathy Devarajan Syncfusion Team August 22, 2024 01:15 PM UTC

Hi Praveen,


Query

Response

When a row is selected it is override the CellStyle of TextColor. How to keep Same Text Color or make the SelectedRow border style change such that background and foregroundcolor remain the same for the cell.

 

 

 

 

Based on the provided information, it is clear that when selecting a row, it overrides the CellStyle of the text color.

 

Please note that this is the expected behavior of selection in the DataGrid.

 

However, you can achieve your requirement with a custom CellRenderer. We have shared a simple sample and a screenshot for your reference.



Regards,

Sethupathy D.


Attachment: SfDataGridSample_d50fbfe.zip

Loader.
Up arrow icon