New to Telerik UI for WPF? Start a free 30-day trial
RadGridView Column Header doesn't auto change width
Updated on Sep 15, 2025
Environment
| Product Version | 2019.1 220 |
| Product | RadGridView for WPF |
Description
When I change RadGridView column header from a longer to a shorter string, the column header width doesn't change its size to autofit.
Solution
To make the header fit its content, reset the Width of the column when the Header changes.
C#
public void MethodCalledWhenTheHeaderPropertyChanges()
{
var column = this.radGridView.Columns[0];
column.Width = new GridViewLength(1, GridViewLengthUnitType.Pixel);
column.Width = new GridViewLength(1, GridViewLengthUnitType.Auto);
}