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

Disable resizing column while editing cell

1 Answer 115 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anatoly
Top achievements
Rank 1
Anatoly asked on 12 Feb 2015, 08:09 AM
Hi!

I wish to disable column resizing (for example, DataGridViewColumn) while editing cell in standard manner. When I type too long text in cell then column width is growing up that is unnecessary for me. I tried to set column width in design time to "Auto" or to particular width - no effect at all. Can anybody help me?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 12 Feb 2015, 01:34 PM
Hi,

I would suggest you configuring the column's Width to be one of the following:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="SizeToHeader"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="*"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="100"/>

How does this work for you?

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Anatoly
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or