Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WinExplorerView.MoveBy(Int32) Method

Selects an item within this WinExplorerView that is placed delta places from than the currently selected item.

Namespace: DevExpress.XtraGrid.Views.WinExplorer

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public override void MoveBy(
    int delta
)

#Parameters

Name Type Description
delta Int32

An Int32 value that specifies the newly selected item position, starting from the currently selected item.

#Remarks

The MoveBy method moves the selection delta items forward (if the delta parameter’s value is positive) or backwards (if the delta parameter’s value is negative) from the currently selected item. A Group header (see the WinExplorerViewColumns.GroupColumn property) can also be selected via the MoveBy method. In this case, all items within this Group are automatically selected. The animation below illustrates this.

If you set the delta parameter to 1 or -1, the MoveBy method will act identically to the WinExplorerView.MoveNext and WinExplorerView.MovePrev methods respectively.

See Also