Click or drag to resize
GridControlGetSelectedCols Method (Boolean, Boolean)
Returns an array containing the selected column indices.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
public uint[] GetSelectedCols(
	bool rangeColsOnly,
	bool canUseCurrentCell
)

Parameters

rangeColsOnly
Type: SystemBoolean
Set to true to return only the fully selected columns or to false to return columns where only some cells are selected.
canUseCurrentCell
Type: SystemBoolean
Set to true if the column of the current cell can be returned when no other cells are selected or to false to discard the current cell.

Return Value

Type: UInt32
An array containing all the selected columns indices.
Remarks
This method loops through the selected ranges and stores the column index in the returned array.
See Also