New to Telerik UI for WPF? Download free 30-day trial

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; 
} 
WPF RadGridView Change ControlPanel Background Color

See Also

In this article