Back to Devexpress

LayoutView.VisibleRecordIndexChanged Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutview-d67f2439.md

latest2.5 KB
Original Source

LayoutView.VisibleRecordIndexChanged Event

Fires on scrolling the Layout View.

Namespace : DevExpress.XtraGrid.Views.Layout

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DXCategory("Behavior")]
public event LayoutViewVisibleRecordIndexChangedEventHandler VisibleRecordIndexChanged
vb
<DXCategory("Behavior")>
Public Event VisibleRecordIndexChanged As LayoutViewVisibleRecordIndexChangedEventHandler

Event Data

The VisibleRecordIndexChanged event's data class is LayoutViewVisibleRecordIndexChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
PrevVisibleRecordIndexGets the index of the previously visible card.
VisibleRecordIndexGets the index of the current visible card.

Remarks

When the Layout View is scrolled, the index of the currently visible card is changed. This index can be obtained via the LayoutView.VisibleRecordIndex property. The VisibleRecordIndexChanged fires when the LayoutView.VisibleRecordIndex property’s value is changed.

See Also

VisibleRecordIndex

AutoFocusCardOnScrolling

LayoutView Class

LayoutView Members

DevExpress.XtraGrid.Views.Layout Namespace