We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How can I get grid to resize columns (based on all rows, not just visible rows)?

Hi, I am using 1.6.1.8 DataBoundGrid. When I double click between two column headers, grid is automatically resizing the column based on visible rows only. How can I change it to resize the column based on all rows of the grid (like in Excel)? thanks, - Reddy

1 Reply

AD Administrator Syncfusion Team February 16, 2004 10:03 AM

Handle the ResizingColumns event, and if e.Reason is DoubleClick, then call grid.Model.ColWidths.ResizeToFit passing e.Columns. Then set e.Cancel = true.

Loader.
Live Chat Icon For mobile
Up arrow icon