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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Selection Row Color

Thread ID:

Created:

Updated:

Platform:

Replies:

127825 Dec 11,2016 10:22 PM UTC Dec 13,2016 12:45 PM UTC Xamarin.Forms 3
loading
Tags: SfDataGrid
Atif
Asked On December 11, 2016 10:22 PM UTC

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


Ashok N [Syncfusion]
Replied On 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  


Atif
Replied On December 12, 2016 03:13 PM UTC

Nice thanks and perfect.

Ashok N [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;