Click or drag to resize

MapperDetailMoveTo Method (Int32)

Move to the specified row number (1-based). Note that RowCurrent events are NOT fired and data is NOT moved through the mapper's Fields during the move. In general you should use this method to position the mapper to the record immeditately PRIOR to the first record of interest and then use MoveNext to iterate through one or more records of interest.
Remarks
Note that this will throw an InvalidMapperMovement exception if the mapper is positioned beyond the specified record and is not BiDirectional.
Examples
For example, to implement a page size of 10 records and read data for the 2nd page, you would first call mapper.MoveTo(10); to position to the 10th row (the last row of page 1) then iteratively call mapper.MoveNext(); until you have read 10 records (11 through 20) or until mapper.MoveNext();MoveNext() returns false indicating that there are no more records.

Namespace:  NetQuarry.Data.WebMappers
Assembly:  EAP.WebMappers (in EAP.WebMappers.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public override bool MoveTo(
	int row
)

Parameters

row
Type: SystemInt32
The 1-based row number to which to move.

Return Value

Type: Boolean
True if movement succeeded, else false.

Implements

IMapperMoveTo(Int32)
See Also