ComponentOne FlexGrid for WPF and Silverlight
AutoSizeFixedColumns(Int32,Int32,Double,Boolean,Boolean) Method

C1.WPF.FlexGrid Namespace > C1FlexGrid Class > AutoSizeFixedColumns Method : AutoSizeFixedColumns(Int32,Int32,Double,Boolean,Boolean) Method
Index of the first column to resize.
Index of the last column to resize.
Extra width to add to the column, in pixels.
Whether to measure all cells, including those that are not currently visible.
Whether to skip star-sized columns.
Resizes a range of fixed columns to fit their content.
Syntax
'Declaration
 
Public Overloads Sub AutoSizeFixedColumns( _
   ByVal startCol As System.Integer, _
   ByVal endCol As System.Integer, _
   ByVal extra As System.Double, _
   ByVal allCells As System.Boolean, _
   ByVal skipStars As System.Boolean _
) 
public void AutoSizeFixedColumns( 
   System.int startCol,
   System.int endCol,
   System.double extra,
   System.bool allCells,
   System.bool skipStars
)

Parameters

startCol
Index of the first column to resize.
endCol
Index of the last column to resize.
extra
Extra width to add to the column, in pixels.
allCells
Whether to measure all cells, including those that are not currently visible.
skipStars
Whether to skip star-sized columns.
Remarks
Setting the allCells parameter to true causes the grid to create and measure cell elements for the entire grid content, including rows and columns that are not currently visible. This option may be very time consuming if the grid contains a lot of data.
See Also

Reference

C1FlexGrid Class
C1FlexGrid Members
Overload List