We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Selection Row Color

Hi ,

I am trying to acieve the custom color when i select the row but no success.

Is there any way to change the selected row color.

Regards

Atif


3 Replies

AN Ashok N Syncfusion Team December 12, 2016 05:19 AM UTC

Hi Atif, 

Thanks for contacting Syncfusion support. 

We have checked your query and you can achieve your requirement by overriding GetSelectionBackgroundColor method from DataGridStyle and assigning it to the SfDataGrid.GridStyle property. Please refer the below UG link to get more details regarding DataGridStyle  


Also you can achieve this by customizing GridSelectionController class and assigning it to the SfDataGrid.SelectionController  property. Please refer the below UG link to get more details regarding GridSelectionController customizing 


Regards, 
Ashok  



AT Atif December 12, 2016 03:13 PM UTC

Nice thanks and perfect.


AN Ashok N Syncfusion Team December 13, 2016 12:45 PM UTC

Hi Atif, 

Thanks for your update. Please let us know if your require further assistance on this. 

Regards, 
Ashok 


Loader.
Live Chat Icon For mobile
Up arrow icon