//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ /* */ namespace System.Web.UI.WebControls { using System; using System.Diagnostics.CodeAnalysis; /// /// Provides data for some events. /// public class GridViewCommandEventArgs : CommandEventArgs { private GridViewRow _row; private object _commandSource; /// /// Initializes a new instance of the /// class. /// public GridViewCommandEventArgs(GridViewRow row, object commandSource, CommandEventArgs originalArgs) : base(originalArgs) { this._row = row; this._commandSource = commandSource; } /// /// Initializes a new instance of the /// class. /// [SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers")] public GridViewCommandEventArgs(object commandSource, CommandEventArgs originalArgs) : base(originalArgs) { this._commandSource = commandSource; } /// /// Gets the source of the command. This property is read-only. /// public object CommandSource { get { return _commandSource; } } /// /// Set by the user to skip databound or datasource handling of the event. /// public bool Handled { get; set; } /// /// Gets the row in the that was clicked. This property is read-only. /// internal GridViewRow Row { get { return _row; } } } }