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

  1. Subscribe to the Loaded event of RadGridView.

  2. In the event handler, get the ItemsControl that represents the Control Panel.

  3. 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; 
} 

See Also

In this article
Not finding the help you need? Improve this article