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

Background color of selected rows with multiple selection

Thread ID:

Created:

Updated:

Platform:

Replies:

121655 Jan 13,2016 08:51 PM UTC Jan 14,2016 12:46 PM UTC Xamarin.Android 1
loading
Tags: SfDataGrid
Yves Tessier
Asked On January 13, 2016 08:51 PM UTC

Hi,

I would like to have the different rows selected in a grid with different colors...The selection color will match the color of a line in a chart. I was able to change the background color using the GridSelectionBackgroundColor of a DataGridStyle.. but this as the effect that all selected rows change color not just one row

I tried something somilar to this:

int currentColorIndex = 0;
void DataGrid_SelectionChanging(object sender, GridSelectionChangingEventArgs e)
{
      for (int i = 0; i < e.AddedItems.Count; i++)
      {
                gridStyle.GridSelectionBackgroundColor = colorForSelection(currentColorIndex );
                currentColorIndex ++;
      }
}

Just in case it could have some impact we are using dynamic column



Dharmendar Dhanasekar [Syncfusion]
Replied On January 14, 2016 12:46 PM UTC

Hi Yves Tessier,

Thank you for using syncfusion  product.

We have analyzed your query. At present, there is no support for applying different selection colors for the selected rows. Customizing the selection color will apply the selection colors for all rows and cannot make work around for this.

Please let us know if you have any query.

Regards,
Dharmendar


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

;