windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-baseview-8d43a4a7.md
Occurs when the mouse pointer leaves the View.
Namespace : DevExpress.XtraGrid.Views.Base
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DXCategory("Mouse")]
public event EventHandler MouseLeave
<DXCategory("Mouse")>
Public Event MouseLeave As EventHandler
The MouseLeave event's data class is EventArgs.
To get the View being currently processed, see the event’s sender parameter.
If you handle the MouseLeave event for a detail View, the sender identifies the clone that has actually raised the event.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MouseLeave event.
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-add-check-box-to-column-header/CS/GridViewColumnHeaderExtender.cs#L258
view.MouseMove -= OnMouseMove;
view.MouseLeave -= view_MouseLeave;
return;
winforms-grid-add-check-box-to-column-header/VB/GridViewColumnHeaderExtender.vb#L238
RemoveHandler _view.MouseMove, AddressOf OnMouseMove
RemoveHandler _view.MouseLeave, AddressOf view_MouseLeave
Return
See Also