Click or drag to resize
GridControlSetColWidth Method (UInt32, UInt32, Int32, Int32)
Sets the width of the specified columns.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
public bool SetColWidth(
	uint fromCol,
	uint toCol,
	int width,
	int[] widthArray
)

Parameters

fromCol
Type: SystemUInt32
The first column index.
toCol
Type: SystemUInt32
The last column index.
width
Type: SystemInt32
The new width for all the indicated columns, in pixels.
widthArray
Type: SystemInt32
Holds the new widths for the specified columns. If it is nullptr, width is used for all the indicated columns.

Return Value

Type: Boolean
true if the command is successfully executed; false if the command fails or if the user aborts the operation.
Remarks
Equivalent to SetColWidth(fromCol, toCol, width, widthArray, UpdateNow, Do).
See Also