How to Change RadGridView ControlPanel Background Color
Environment
Product Version | 2019.2 812 |
Product | RadGridView for WPF |
Description
How to change the Background color of RadGridView's ControlPanel.
Solution
Subscribe to the Loaded event of RadGridView.
In the event handler, get the ItemsControl that represents the Control Panel.
Set the Background property of the Control Panel.
private void RadGridView_Loaded(object sender, RoutedEventArgs e)
{
var controlPanel = this.radGridView.ChildrenOfType<ItemsControl>().FirstOrDefault(x => x.Name == "PART_ControlPanelItemsControl");
controlPanel.Background = Brushes.OrangeRed;
}