Click or drag to resize
GridControlSetColWidth Method (UInt32, UInt32, Int32, Int32, RedrawFlags, CmdType)
Sets the widths for specific 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,
	RedrawFlags redraw,
	CmdType cmdType
)

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.
redraw
Type: Stingray.GridRedrawFlags
The redraw technique. It can take one of the following values:
UpdateNow
to scroll the window contents and call UpdateWindow() after invalidating the window.
Smart
to scroll the window contents without calling UpdateWindow() after the last invalidation.
Invalidate
to simply invalidate the window area right of the column fromCol.
cmdType
Type: Stingray.GridCmdType
How the operation is performed.

Return Value

Type: Boolean
true if the command is successfully executed; false if the command fails or if the user aborts the operation.
See Also