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 03:03 PM UTC

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.
Up arrow icon