Version

ColumnSorted Event

The ColumnSorted event is raised after the XamGrid has completed its sort.
Syntax
'Declaration
 
Public Event ColumnSorted As EventHandler(Of SortedColumnEventArgs)
public event EventHandler<SortedColumnEventArgs> ColumnSorted
Event Data

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

PropertyDescription
Column (Inherited from Infragistics.Controls.Grids.ColumnEventArgs)The ColumnEventArgs.Column that this event was triggered for.
PreviousSortDirection Gets the SortDirectionthat was previously applied.
Example
This sample demonstrates how to handle the ColumnSorted event which is fired after the column is sorted.

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.

Private Sub MyGrid_ColumnSorted(ByVal sender As System.Object, ByVal e As   SortedColumnEventArgs)
   System.Diagnostics.Debug.WriteLine("Column sorted successfully")
End Sub
private void MyGrid_ColumnSorted(object sender, SortedColumnEventArgs e)
{
   System.Diagnostics.Debug.WriteLine("Column successfully sorted");
}
<ig:XamGrid ColumnSorted="MyGrid_ColumnSorted">
</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