Back to Devexpress

BeforeItemDropEventArgs.ListSourceRowIndex Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-beforeitemdropeventargs-bb95ffe5.md

latest2.5 KB
Original Source

BeforeItemDropEventArgs.ListSourceRowIndex Property

Gets the tile’s index in the data source.

Namespace : DevExpress.XtraGrid.Views.Tile

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public int ListSourceRowIndex { get; }
vb
Public ReadOnly Property ListSourceRowIndex As Integer

Property Value

TypeDescription
Int32

The tile’s index in the data source.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ListSourceRowIndex 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-reorder-tileview-cards-sql/CS/Reorder/Form1.cs#L25

csharp
// Leave data source indexes as is
e.NewListSourceRowIndex = e.ListSourceRowIndex;

winforms-grid-reorder-tileview-cards-sql/VB/Reorder/Form1.vb#L24

vb
' Leave data source indexes as is
e.NewListSourceRowIndex = e.ListSourceRowIndex
Dim view = TryCast(sender, TileView)

See Also

BeforeItemDropEventArgs Class

BeforeItemDropEventArgs Members

DevExpress.XtraGrid.Views.Tile Namespace