Back to Devexpress

BaseView.LostFocus Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-baseview-1cc99288.md

latest2.2 KB
Original Source

BaseView.LostFocus Event

Occurs when a View loses focus.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DXCategory("Focus")]
public event EventHandler LostFocus
vb
<DXCategory("Focus")>
Public Event LostFocus As EventHandler

Event Data

The LostFocus event's data class is EventArgs.

Remarks

You can handle the LostFocus event to perform specific actions when a View loses focus. This occurs when focus is moved to another control, another View or between clones of the same detail View. The event sender represents a View (clone) which loses focus.

When a View gets focus, the BaseView.GotFocus event is generated. Note that handling the BaseView.GotFocus and LostFocus events is useful only if you need to respond to focus changes for a particular View. If you need to provide a general response to changing View focus within the grid control, handle the GridControl.FocusedViewChanged event.

See Also

FocusedView

FocusedViewChanged

GotFocus

LostFocus

BaseView Class

BaseView Members

DevExpress.XtraGrid.Views.Base Namespace