Xceed Grid for WinForms v4.3 Documentation
MoveCurrentRow(VerticalDirection) Method


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GridControl Class > MoveCurrentRow Method : MoveCurrentRow(VerticalDirection) Method
A VerticalDirection value representing the direction in which to move the current row. The row will only be moved within the GridSection.Current grid section.
Moves the CurrentRow in the specified vertical direction.
Syntax
'Declaration
 
Public Overloads Sub MoveCurrentRow( _
   ByVal verticalDirection As VerticalDirection _
) 
'Usage
 
Dim instance As GridControl
Dim verticalDirection As VerticalDirection
 
instance.MoveCurrentRow(verticalDirection)
public void MoveCurrentRow( 
   VerticalDirection verticalDirection
)

Parameters

verticalDirection
A VerticalDirection value representing the direction in which to move the current row. The row will only be moved within the GridSection.Current grid section.
Remarks

When moving the current row, if the destination row's CanBeCurrent property is false or if the row is not visible when in a collapsed group, the next available row which can be current and is visible will become the current row. If no other rows are available, the current row will not change.

Moving the current row outside of the visible area of the grid does not cause the grid to scroll. To bring the new current row into view, the GridElement.BringIntoView method can be used.

If you want to move the next row even if it is in a collapsed group, then the GridElement.BringIntoView method must be called on the destination row before the current row is moved.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members
Overload List