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.
Unfortunately, activation email could not send to your email. Please try again.

Selection Row Color

Thread ID:

Created:

Updated:

Platform:

Replies:

127825 Dec 11,2016 05:22 PM Dec 13,2016 07:45 AM Xamarin.Forms 3
loading
Tags: SfDataGrid
Atif
Asked On December 11, 2016 05:22 PM

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 12:19 AM

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 10:13 AM

Nice thanks and perfect.

Ashok N [Syncfusion]
Replied On December 13, 2016 07:45 AM

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.

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.

;