C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class > AutoSizeCols Method : AutoSizeCols(Int32,Int32,Int32,Int32,Int32,AutoSizeFlags) Method |
'Declaration
Public Overloads Overridable Sub AutoSizeCols( _ ByVal topRow As Integer, _ ByVal leftCol As Integer, _ ByVal bottomRow As Integer, _ ByVal rightCol As Integer, _ ByVal extraSpace As Integer, _ ByVal flags As AutoSizeFlags _ )
'Usage
Dim instance As C1FlexGridBase Dim topRow As Integer Dim leftCol As Integer Dim bottomRow As Integer Dim rightCol As Integer Dim extraSpace As Integer Dim flags As AutoSizeFlags instance.AutoSizeCols(topRow, leftCol, bottomRow, rightCol, extraSpace, flags)
By default, the AutoSizeCols(Int32,Int32,Int32,Int32,Int32,AutoSizeFlags) method measures every cell in each column, taking into account the cell contents and style.
If the grid has a large number of rows, you can improve performance by using the topRow and bottomRow parameters to specify a row range. You can include only a few hundred rows in the process, and add some extra spacing for safety.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2