ColumnDragOverEventArgs.SourceIndex Property
Gets the index of the source column or band where the drag operation started.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.Core.dll
Declaration
Property Value
| Type | Description |
|---|---|
| Int32 | The index of the source column or band where the drag operation started. |
Remarks
The following code snippet prevents users from dragging an item within one of the first two bands:
private void TableView_ColumnDragOver(object sender, ColumnDragOverEventArgs e) {
if (e.SourceIndex >= 0 && e.SourceIndex < 2) {
e.Cancel = true;
}
}
See Also