Version

ColumnDragCanceled Event

This event is raised when a drag operation is canceled.
Syntax
'Declaration
 
Public Event ColumnDragCanceled As EventHandler(Of ColumnDragCanceledEventArgs)
public event EventHandler<ColumnDragCanceledEventArgs> ColumnDragCanceled
Event Data

The event handler receives an argument of type ColumnDragCanceledEventArgs containing data related to this event. The following ColumnDragCanceledEventArgs properties provide information specific to this event.

PropertyDescription
CancelType The type of operation that occured.
Column (Inherited from Infragistics.Controls.Grids.ColumnEventArgs)The ColumnEventArgs.Column that this event was triggered for.
Example
This sample demonstrates how to handle the ColumnDragCancelled event which is fired when a drag operation is cancelled.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

AddHandler Me.MyGrid.ColumnDragCanceled, AddressOf MyGrid_ColumnDragCanceled

Private Sub MyGrid_ColumnDragCanceled(ByVal sender As System.Object, ByVal e As ColumnDragCanceledEventArgs)
   System.Diagnostics.Debug.WriteLine("Drag operation on Column " + e.Column.Key.ToString + " was cancelled due to " + e.CancelType.ToString)
End Sub
this.MyGrid.ColumnDragCanceled += new EventHandler<ColumnDragCanceledEventArgs>(MyGrid_ColumnDragCanceled);

void MyGrid_ColumnDragCanceled(object sender, ColumnDragCanceledEventArgs e)
{
   System.Diagnostics.Debug.WriteLine("Drag operation on Column " + e.Column.Key + " was cancelled due to " + e.CancelType);
}
<ig:XamGrid x:Name="MyGrid" 
    
ColumnDragCanceled="MyGrid_ColumnDragCanceled">
…            
</ig:XamGrid>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also