Version

ColumnDragEnded Event

This event is raised when a drag operation has completed, whether it was successful or canceled.
Syntax
'Declaration
 
Public Event ColumnDragEnded As EventHandler(Of ColumnDragEndedEventArgs)
public event EventHandler<ColumnDragEndedEventArgs> ColumnDragEnded
Event Data

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

PropertyDescription
Column (Inherited from Infragistics.Controls.Grids.ColumnEventArgs)The ColumnEventArgs.Column that this event was triggered for.
Example
This sample demonstrates how to handle the ColumnDragStart event which is fired when a drag operation is completed, regardless if it was successful or not.

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.ColumnDragEnded, AddressOf MyGrid_ColumnDragEnded

Private Sub dataGrid_ColumnDragEnded(ByVal sender As System.Object, ByVal e As ColumnDragEndedEventArgs)
   System.Diagnostics.Debug.WriteLine("Drag operation has ended on Column " + e.Column.Key.ToString)
End Sub
this.MyGrid.ColumnDragEnded += new EventHandler<ColumnDragEndedEventArgs>(MyGrid_ColumnDragEnded);

void MyGrid_ColumnDragEnded(object sender, ColumnDragEndedEventArgs e)
{
   System.Diagnostics.Debug.WriteLine("Drag operation has ended on Column " + e.Column.Key);
}
<ig:XamGrid x:Name="MyGrid"  
    
ColumnDragEnded="MyGrid_ColumnDragEnded">
</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