ComponentOne FlexGrid for WPF and Silverlight
AutoSizeColumn Method (GridPanel)

C1.WPF.FlexGrid Namespace > GridPanel Class : AutoSizeColumn Method
Index of the column to resize.
Extra width to add to the column in pixels.
Whether to measure all cells or only the visible ones.
Resizes a column to fit its visible contents.
Syntax
'Declaration
 
Public Function AutoSizeColumn( _
   ByVal col As System.Integer, _
   ByVal extra As System.Double, _
   ByVal allCells As System.Boolean _
) As System.Double
public System.double AutoSizeColumn( 
   System.int col,
   System.double extra,
   System.bool allCells
)

Parameters

col
Index of the column to resize.
extra
Extra width to add to the column in pixels.
allCells
Whether to measure all cells or only the visible ones.

Return Value

The new column width in pixels.
See Also

Reference

GridPanel Class
GridPanel Members