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

Additional column added after all gridview columns

PROBLEM

RadGridView adds an additional empty column after all gridview columns:

troubleshooting additional column Telerik WPF DataGrid

CAUSE

RadGridView tries to fill all the width that it takes. Actually this is not a column, but rather the rows which span to end of the GridView.

SOLUTION

You can use either of the following methods:

  • Set the ColumnWidth property of RadGridView to "*"

<telerik:RadGridView ItemsSource="{Binding Clubs}" ColumnWidth="*" /> 
The result would be:

troubleshooting additional column Telerik WPF DataGrid fix1

  • Set the Width of any of the columns to "*"

<telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}"  
            Header="Stadium"  
            Width="*"/> 
Now, the result would be:

troubleshooting additional column Telerik WPF DataGrid fix2

See Also

In this article