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.

Background color of selected rows with multiple selection

Thread ID:

Created:

Updated:

Platform:

Replies:

121655 Jan 13,2016 03:51 PM Jan 14,2016 07:46 AM Xamarin.Android 1
loading
Tags: SfDataGrid
Yves Tessier
Asked On January 13, 2016 03:51 PM

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 07:46 AM

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.

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.

;