ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 743
نمايش فراداده

DataGridSortCommandEventArgs

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

Hierarchy

System.Object System.EventArgs DataGridSortCommandEventArgs

Passed To

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