This is a migrated thread and some comments may be shown as answers.

Changing the color of the header & selected row in radDatagrid

1 Answer 73 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
akash
Top achievements
Rank 1
akash asked on 20 Jan 2016, 08:44 AM
I've been going through your forums for a long time now and i'm not able to find a solution on how to change the color of the headers and selected row in radDatagrid(Universal Windows App).It would be nice if someone can explain me how to go about it.All my headers and contents of the radDatagrid are coming from the services. 

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 25 Jan 2016, 09:18 AM
Hello,

Thank you for your interest.

You can find how to change the style of the selected cell/row here: http://docs.telerik.com/windows-universal/controls/raddatagrid/styling/datagrid-implicitstyling(SelectionRegionBorder/BackgroundControl and CurrencyControl).
Also, you can override the TelerikGridHeaderBackgroundBrush and TelerikGridHeaderForegroundBrush to change the background and foreground of the DataGridColumnHeader. Here you can find more information about resolving TelerikNamedBrushes : http://docs.telerik.com/windows-universal/common/resolvingteleriknamedresources where the Dark/Light ResourcePath is the path of the Resource Dictionary files where you have overriden our brushes.

I hope this helps.

Regards,
Ivaylo Gergov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataGrid
Asked by
akash
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or