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


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GridControl Class > MoveCurrentRow Method : MoveCurrentRow(VerticalDirection,GridSection) Method
A VerticalDirection value representing the direction in which to move the current row.
A GridSection value representing the section of the grid to which to move the current row.
Moves the CurrentRow in the specified vertical direction to the specified grid section.
Syntax
'Declaration
 
Public Overloads Sub MoveCurrentRow( _

   ByVal verticalDirection As VerticalDirection, _

   ByVal gridSection As GridSection _

) 
'Usage
 
Dim instance As GridControl

Dim verticalDirection As VerticalDirection

Dim gridSection As GridSection

 

instance.MoveCurrentRow(verticalDirection, gridSection)
public void MoveCurrentRow( 

   VerticalDirection verticalDirection,

   GridSection gridSection

)

Parameters

verticalDirection
A VerticalDirection value representing the direction in which to move the current row.
gridSection
A GridSection value representing the section of the grid to which to move the current row.
Remarks

The VerticalDirection.PageUp, VerticalDirection.PageDown, VerticalDirection.Up and VerticalDirection.Down directions can only be used when gridSection is set to GridSection.Current. The VerticalDirection.Top and VerticalDirection.Bottom directions will move the current row within all 3 grid sections.

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