www.gibmonks.com

Main Page

  Previous Section Next Section

DataGridCommandEventArgs

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

The DataGridCommandEventArgs class provides more information for the ItemCommand, CancelCommand, DeleteCommand, EditCommand, and UpdateCommand events of the DataGrid control. This information consists of an Item property identifying the affected DataGridItem and a CommandSource property that refers to the button or hyperlink that was clicked. You have to cast this object to an appropriate type to read its properties.

public sealed class DataGridCommandEventArgs : CommandEventArgs {
// Public Constructors
   public DataGridCommandEventArgs(DataGridItem item, object commandSource, CommandEventArgs originalArgs);
// Public Instance Properties
   public object CommandSource{get; }
   public DataGridItem Item{get; }
}

Hierarchy

System.Object System.EventArgs CommandEventArgs DataGridCommandEventArgs

Passed To

DataGrid.{OnCancelCommand( ), OnDeleteCommand( ), OnEditCommand( ), OnItemCommand( ), OnUpdateCommand( )}, DataGridCommandEventHandler.{BeginInvoke( ), Invoke( )}, DataGridSortCommandEventArgs.DataGridSortCommandEventArgs( )

      Previous Section Next Section