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

WinExplorerViewOptionsBehavior.AutoScrollItemOnMouseClick Property

Gets or sets whether or not the WinExplorer View should scroll up or down when an end-user clicks a view item.

Namespace: DevExpress.XtraGrid.WinExplorer

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public bool AutoScrollItemOnMouseClick { get; set; }

#Property Value

Type Default Description
Boolean true

true if the WinExplorer View should scroll up or down when an end-user clicks a view item; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to AutoScrollItemOnMouseClick
WinExplorerView
.OptionsBehavior .AutoScrollItemOnMouseClick

#Remarks

When an end-user clicks a WinExplorer View item that is partly visible, the View automatically scrolls its content up or down to display this item’s opposite edge (the one which is currently hidden). Use the AutoScrollItemOnMouseClick property to disable this behavior. The animation below illustrates an example.

private void barToggleSwitchItem1_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
    winExplorerView1.OptionsBehavior.AutoScrollItemOnMouseClick = !winExplorerView1.OptionsBehavior.AutoScrollItemOnMouseClick;
    barToggleSwitchItem1.Caption = winExplorerView1.OptionsBehavior.AutoScrollItemOnMouseClick ? "Auto Scroll: On" : "Auto Scroll: Off";
}
See Also