Click or drag to resize
GridControlInsertCols Method (UInt32, Int32, Int32, RedrawFlags, CmdType)
Inserts columns.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
public bool InsertCols(
	uint col,
	int count,
	int[] widthArray,
	RedrawFlags redraw,
	CmdType cmdType
)

Parameters

col
Type: SystemUInt32
The column index where the new colums are inserted.
count
Type: SystemInt32
The number of columns to insert.
widthArray
Type: SystemInt32
An array with the column widths for the inserted 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 col.
cmdType
Type: Stingray.GridCmdType
How the operation is performed.

Return Value

Type: Boolean
true if the operation is successful, false otherwise.
See Also