I am using RadGridView with sorting enabled. Also Allowing resize columns.
But when I am double clicking on column text in header, it do sorting but also have extra behavior to expand (resize) the column width based on data, which we do not want.
Is there any way we can stop this behavior?
1 Answer, 1 is accepted
0
Dinko | Tech Support Engineer
Telerik team
answered on 23 Nov 2023, 01:21 PM
Hi Gaurav,
Thank you for reaching out to us.
By default, double-clicking on the right border of the column header cell will expand the column to fit the value inside. To disable this behavior you can set the AllowAutoSizeColumns property of the RadGridView to false.
this.radGridView1.AllowAutoSizeColumns = false;
Let me know if this property works for you.
Regards,
Dinko | Tech Support Engineer
Progress Telerik