FlexGrid for WinForms
AutoSizeCol(Int32,Int32) Method



Column index.
Amount of extra space, in pixels, to add to the column widths.
Adjusts the width of a column to fit the data.
Syntax
'Declaration
 
Public Overloads Overridable Sub AutoSizeCol( _
   ByVal col As Integer, _
   ByVal extraSpace As Integer _
) 
'Usage
 
Dim instance As C1FlexGridBase
Dim col As Integer
Dim extraSpace As Integer
 
instance.AutoSizeCol(col, extraSpace)
public virtual void AutoSizeCol( 
   int col,
   int extraSpace
)
public:
virtual void AutoSizeCol( 
   int col,
   int extraSpace
) 

Parameters

col
Column index.
extraSpace
Amount of extra space, in pixels, to add to the column widths.
Remarks
This method measures every cell in the column, taking into account the cell contents and style. If the grid has a large number of rows, consider using the AutoSizeCols(Int32,Int32,Int32,Int32,Int32,AutoSizeFlags) method instead, because it allows you to specify a smaller set of rows and columns to measure.
Requirements

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

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback