The following is a simple RadGridView code where I want to set the width of the GridViewDataColumn width property to star:
<UserControl x:Class="namespace1.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local="clr-namespace:namespace1.View.UserControls"
mc:Ignorable="d">
<Grid>
<telerik:RadGridView>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Width="*">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="Some text"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>
</UserControl>
The result of this code in the attachment where the column is taking a huge space and is not shrieked until I set MaxWidth property to some value. I am not sure if this is a correct behavior. Help Please?