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. Image for the cookie policy date
close icon

data grid control highlight row background

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


2 Replies

MF Mary Fontana 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?







RV Ramesh V Syncfusion Team 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


Loader.
Live Chat Icon For mobile
Up arrow icon