This class provides extra information for the DataGrid.SortCommand event. This information includes the CommandSource, which will always be the DataGridItem that represents the header row, and the SortExpression, which indicates the column (field) title. If you use a System.Data.DataView for your data source, you can assign this expression to the Sort property.
public sealed class DataGridSortCommandEventArgs : EventArgs { // Public Constructors public DataGridSortCommandEventArgs(object commandSource, DataGridCommandEventArgs dce); // Public Instance Properties public object CommandSource{get; } public string SortExpression{get; } }