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.
Syncfusion Feedback

data grid control highlight row background

Thread ID:

Created:

Updated:

Platform:

Replies:

100370 Aug 2,2011 06:04 AM UTC Aug 3,2011 01:54 PM UTC WPF 2
loading
Tags: GridControl
Mary Fontana
Asked On August 2, 2011 06:04 AM UTC

I am using data grid control. How do you change the the background color of an entire row of a selected cell?
Thanks.


Mary Fontana
Replied On August 2, 2011 02:57 PM UTC

I am using the following to allow multi selected cells

gdc.ListBoxSelectionMode = GridSelectionMode.None;

gdc.AllowSelection = GridSelectionFlags.Cell | GridSelectionFlags.Multiple | GridSelectionFlags.Keyboard | GridSelectionFlags.Shift;

I like how the entire row background color is changed when using
gdc.ListBoxSelectionMode = GridSelectionMode.One;
But if I set this it no longer allows for multi selected cells.

Is there another way to set the background color of row when a cell is selected?






Ramesh V [Syncfusion]
Replied On August 3, 2011 01:54 PM UTC

Hi Mary,

Thanks for your interest in syncfusion products.

We hve analyzed your requirements. By using the following code you can change the selction color.

Code Snippet[C#]:

grid.Model.Options.HighlightSelectionAlphaBlend = Brushes.Red;

Please let us know if this helps.

Regards,
Ramesh


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

;