Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / DataGridVirtualizingCollectionViewBase Class / MoveCurrentToPosition Method
The index at which to set the new CurrentItem.


In This Topic
    MoveCurrentToPosition Method (DataGridVirtualizingCollectionViewBase)
    In This Topic
    Sets the item at the specified index as the new CurrentItem.
    Syntax
    'Declaration
     
    Public Overrides Function MoveCurrentToPosition( _
       ByVal position As Integer _
    ) As Boolean
    'Usage
     
    Dim instance As DataGridVirtualizingCollectionViewBase
    Dim position As Integer
    Dim value As Boolean
     
    value = instance.MoveCurrentToPosition(position)
    public override bool MoveCurrentToPosition( 
       int position
    )

    Parameters

    position
    The index at which to set the new CurrentItem.

    Return Value

    true if the new current item in within the view; false otherwise.
    Requirements

    Target Platforms: Windows 11, Windows, 10, 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