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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

double click resize to fit

Thread ID:

Created:

Updated:

Platform:

Replies:

10573 Feb 5,2004 05:56 PM UTC Feb 5,2004 09:00 PM UTC WinForms 1
loading
Tags: GridControl
Charles Dlhopolsky
Asked On February 5, 2004 05:56 PM UTC

When I double click the border between two columns to resize the column to fit the largest cell, it seems to only check currently visible data (not data scrolled off the screen) Additionally, if I select the whole grid (by clicking on the upper left corner of the grid) it resizes only the columns that are visible by the size of the largest visible cell in that column. Is this a bug or a feature? Is there an option to have it check the whole table?

Administrator [Syncfusion]
Replied On February 5, 2004 09:00 PM UTC

Sizing the visible area is by design. If you have a grid with thousands of rows, then sizing the whole grid will take significant time. If you want to size the all the cells in a column, then you can handle the ResizingColumns event and size things there yourself. private void grid_ResizingColumns(object sender, GridResizingColumnsEventArgs e) { if (e.Reason == GridResizeCellsReason.DoubleClick) { GridRangeInfo columns = grid.Selections.Ranges.GetRangesContaining(e.Columns).ActiveRange.UnionRange(e.Columns); grid.Model.ColWidths.ResizeToFit(columns, GridResizeToFitOptions.IncludeHeaders); e.Cancel = true; } }

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;