ColumnDragOverEventArgs.SourceBandIndex Property
Gets the index of the source 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 band where the drag operation started. |
Remarks
The following code snippet prevents users from dragging an item when the source band index is less than 3:
private void TableView_ColumnDragOver(object sender, ColumnDragOverEventArgs e) {
if (e.SourceBandIndex >= 0 && e.SourceBandIndex < 3) {
e.Cancel = true;
}
}
See Also