We need the column width to be automatically adjusted to the content. I managed to make it bigger upon adding text to a cell. However, it dosn't get smaller when the text is deleted from the cell. I use the following code:
<telerikGrid:RadGridView.Columns>
<telerikGrid:GridViewDataColumn Header="X" Width="Auto" IsReadOnly="True" IsReorderable="False" IsResizable="True" />
<telerikGrid:GridViewDataColumn Header="Y" Width="Auto"/>
</telerikGrid:RadGridView.Columns>
Assigning Width="SizeToCells" doesn't do the trick. Am I doing something wrong?
<telerikGrid:RadGridView.Columns>
<telerikGrid:GridViewDataColumn Header="X" Width="Auto" IsReadOnly="True" IsReorderable="False" IsResizable="True" />
<telerikGrid:GridViewDataColumn Header="Y" Width="Auto"/>
</telerikGrid:RadGridView.Columns>
Assigning Width="SizeToCells" doesn't do the trick. Am I doing something wrong?