Main Page

  Previous Section Next Section


System.Web.UI.WebControls (system.web.dll)sealed class

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; }


System.Object System.EventArgs DataGridSortCommandEventArgs

Passed To

DataGrid.OnSortCommand( ), DataGridSortCommandEventHandler.{BeginInvoke( ), Invoke( )}

      Previous Section Next Section