windowsforms-devexpress-dot-xtragrid-dot-gridcontrol-5786c4dc.md
Gets or sets the cursor that is displayed when the mouse pointer is over the current GridControl.
Namespace : DevExpress.XtraGrid
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public override Cursor Cursor { get; set; }
Public Overrides Property Cursor As Cursor
| Type | Description |
|---|---|
| Cursor |
A System.Windows.Forms.Cursor object that represents the cursor to display when the mouse pointer is over the control.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Cursor property.
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-grid-move-cell-using-drag-drop/CS/Classes/GridViewHelper.cs#L38
BaseView view = gridView.GridControl.GetViewAt(e.Location);
(view as GridView).GridControl.Cursor = Cursors.Default;
BaseHitInfo baseHI = view.CalcHitInfo(e.Location);
winforms-grid-move-cell-using-drag-drop/VB/Classes/GridViewHelper.vb#L34
Dim view As BaseView = gridView.GridControl.GetViewAt(e.Location)
TryCast(view, GridView).GridControl.Cursor = Cursors.Default
Dim baseHI As BaseHitInfo = view.CalcHitInfo(e.Location)
See Also