Click or drag to resize
RangeGetNextCell Method (UInt32, UInt32, Boolean)
Gets the next cell, in either row or column order.

Namespace: Stingray.Grid
Assembly: Stingray.GridUtils (in Stingray.GridUtils.dll) Version: 14.0.0.0
Syntax
public bool GetNextCell(
	ref uint row,
	ref uint col,
	bool sortByRow
)

Parameters

row
Type: SystemUInt32
The row index of the reference cell. It is set on return to the row index of the cell following to the reference cell, in the indicated order.
col
Type: SystemUInt32
The column index of the reference cell. It is set on return to the column index of the cell next to the reference cell, in the indicated order.
sortByRow
Type: SystemBoolean
true for row order access, false for column order access.

Return Value

Type: Boolean
true if row and col are set to the location of a valid cell; false if there is no next cell in this Range.
Remarks
Given a reference cell, this method computes the location of the next cell, in row or column order, that is, the cell immediately to the right or the bottom of the reference cell, in this range. If the reference cell is the rightmost cell of the range row (or the bottommost cell of the range column), this method returns the location of the first cell on the next row (or the next column) of the range. If there is no such next row (or column), the returned cell location is invalid.
See Also