windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-baseview-9f2319b1.md
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
public virtual void ResetCursor()
Public Overridable Sub ResetCursor
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
if (gridHitInfo != null)
gridHitInfo.View.ResetCursor();
gridHitInfo = null;
winforms-diagram-create-custom-toolbox/VB/CustomDiagramToolboxExample/Form1.vb#L66
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