Disable resizing column while editing cell

2 posts, 1 answers
  1. Anatoly
    Anatoly avatar
    3 posts
    Member since:
    Mar 2014

    Posted 12 Feb 2015 Link to this post

    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?
  2. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 12 Feb 2015 Link to this post

    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.

     
Back to Top