Data NavigatorMove To(Int 32) 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: 2024.12.31.0
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.
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public bool MoveTo(
int newRow
)VB
Public Function MoveTo (
newRow As Integer
) As BooleanC++
public:
bool MoveTo(
int newRow
)F#
member MoveTo :
newRow : int -> bool Parameters
- newRow Int32
- The row to which the focus is moved
Return Value
BooleanTrue 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
| ArgumentOutOfRangeException | This is thrown if the value is outside the bounds of the list or if there is no data source. |