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

[Solved] Question to resize of Column width

1 Answer 154 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 21 Apr 2009, 08:14 AM
Hello experts,

with which property can I fix the Column width so that the user can't resize the column with?

Thanks

Christian

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 21 Apr 2009, 08:34 AM
Hello Christian,

You can set the width of the column in the HeaderStyle tag and then set the TableLayout property of the MasterTableView to fixed. Also set the Resizeable property of the column to false. Check out the code below:
aspx:
<MasterTableView TableLayout="Fixed" DataSourceID="SqlDataSource1">      
    <Columns>  
         <telerik:GridBoundColumn Resizable="false" DataField="Name" HeaderText="Name" UniqueName="Name"
            <HeaderStyle Width="100px" /> 
         </telerik:GridBoundColumn>  
        

Thanks
Princy.
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or