Back to Devexpress

BaseView.ResetCursor() Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-baseview-9f2319b1.md

latest2.4 KB
Original Source

BaseView.ResetCursor() Method

Sets the mouse cursor to the grid’s Cursor property value.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public virtual void ResetCursor()
vb
Public Overridable Sub ResetCursor

Remarks

The function supports the control’s infrastructure and is not intended to be used from your code.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ResetCursor() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-diagram-create-custom-toolbox/CS/CustomDiagramToolboxExample/Form1.cs#L69

csharp
if (gridHitInfo != null)
    gridHitInfo.View.ResetCursor();
gridHitInfo = null;

winforms-diagram-create-custom-toolbox/VB/CustomDiagramToolboxExample/Form1.vb#L66

vb
Private Sub gridControl1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs)
    If Me.gridHitInfo IsNot Nothing Then Me.gridHitInfo.View.ResetCursor()
    Me.gridHitInfo = Nothing

See Also

BaseView Class

BaseView Members

DevExpress.XtraGrid.Views.Base Namespace