DataNavigatorMoveTo(Int32) Method

This method is used to move the focus to the specified row in the data source

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public bool MoveTo(
	int newRow
)

Parameters

newRow  Int32
The row to which the focus is moved

Return Value

Boolean
True if the specified row now has the focus or false if the focus could not be set due to validation failure on the current row.

Remarks

Before moving to the specified row, the IsValid property is checked to ensure that it is safe to move. If it returns false, the focus will stay on the current row.

Exceptions

ArgumentOutOfRangeExceptionThis is thrown if the value is outside the bounds of the list or if there is no data source.

See Also