This is a migrated thread and some comments may be shown as answers.

[Solved] Column Auto Resizing !

1 Answer 136 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kannan
Top achievements
Rank 1
Kannan asked on 12 Oct 2010, 09:14 AM
Hi All,

I'm using RadGridView with few columns and displaying data through data binding.

When the grid is displayed, the column width is automatically set based on the number of characters in the bound data.

When the data in the cell changed, the width of the column is not automatically reset. ie not expanded.

Is there any way to do this ? If so please let me know. Thanks !

Thanks & Regards,
Kannan

1 Answer, 1 is accepted

Sort by
0
Kannan
Top achievements
Rank 1
answered on 12 Oct 2010, 09:56 AM
Hi All,

I got a solution for this issue from the below link,

http://www.telerik.com/community/forums/silverlight/gridview/autofit-column-width-on-celleditended.aspx

//Set some dummy width in order to trigger property changed

Column.Width = 100;
Column.Width = GridViewLength.Auto;


Thanks & Regards,
Kannan
Tags
GridView
Asked by
Kannan
Top achievements
Rank 1
Answers by
Kannan
Top achievements
Rank 1
Share this question
or