Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / GridViewCommandEventArgs.cs / 1305376 / GridViewCommandEventArgs.cs
//------------------------------------------------------------------------------
//
// 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;
}
}
///
/// Gets the row in the that was clicked. This property is read-only.
///
internal GridViewRow Row {
get {
return _row;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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;
}
}
///
/// Gets the row in the that was clicked. This property is read-only.
///
internal GridViewRow Row {
get {
return _row;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SettingsSection.cs
- OdbcRowUpdatingEvent.cs
- XPathNavigatorReader.cs
- CodePageUtils.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- RepeatButtonAutomationPeer.cs
- HtmlWindow.cs
- NamedObject.cs
- ZipPackage.cs
- ArrayElementGridEntry.cs
- ErrorProvider.cs
- Logging.cs
- LogEntrySerializationException.cs
- RoleManagerEventArgs.cs
- KeyValuePairs.cs
- NTAccount.cs
- CredentialCache.cs
- IdentityReference.cs
- OleDbParameterCollection.cs
- httpstaticobjectscollection.cs
- Line.cs
- RichTextBoxAutomationPeer.cs
- BinaryReader.cs
- HtmlAnchor.cs
- XmlDocumentViewSchema.cs
- TransactionOptions.cs
- SegmentInfo.cs
- WSSecureConversation.cs
- StylusPlugInCollection.cs
- XmlTextReader.cs
- ViewRendering.cs
- tibetanshape.cs
- SafeCryptoHandles.cs
- NativeCppClassAttribute.cs
- XmlDownloadManager.cs
- FontStretchConverter.cs
- PointF.cs
- BamlLocalizabilityResolver.cs
- SqlDataReaderSmi.cs
- CodeExpressionCollection.cs
- GridViewSortEventArgs.cs
- PropertyInfo.cs
- peernodeimplementation.cs
- QuaternionAnimation.cs
- MonthCalendarDesigner.cs
- TypeSystem.cs
- RangeValuePattern.cs
- DisplayNameAttribute.cs
- Brush.cs
- ReadOnlyMetadataCollection.cs
- ProfileBuildProvider.cs
- SqlDataSource.cs
- ForwardPositionQuery.cs
- Span.cs
- SafeNativeMethods.cs
- DataGrid.cs
- KeyGestureValueSerializer.cs
- MobileUserControl.cs
- TemplateBindingExpressionConverter.cs
- LogFlushAsyncResult.cs
- RelationshipEntry.cs
- Win32.cs
- HtmlInputControl.cs
- ClipboardData.cs
- CannotUnloadAppDomainException.cs
- FilterException.cs
- InstancePersistenceEvent.cs
- ToolStripTextBox.cs
- ALinqExpressionVisitor.cs
- WebPartConnectionCollection.cs
- IsolatedStoragePermission.cs
- WindowPatternIdentifiers.cs
- ValueQuery.cs
- SQLStringStorage.cs
- TypeInfo.cs
- CircleHotSpot.cs
- ParallelTimeline.cs
- AutomationPatternInfo.cs
- XmlSerializerSection.cs
- EdmItemError.cs
- XmlLinkedNode.cs
- DeploymentSectionCache.cs
- PriorityBindingExpression.cs
- SymbolEqualComparer.cs
- PerformanceCounterManager.cs
- StreamUpdate.cs
- GAC.cs
- ProbeMatchesMessageCD1.cs
- TypeUtils.cs
- DeploymentSection.cs
- StringBlob.cs
- OdbcDataAdapter.cs
- PersonalizationStateInfo.cs
- FlowDocumentReaderAutomationPeer.cs
- DebugHandleTracker.cs
- SqlTrackingService.cs
- DynamicMethod.cs
- ElementProxy.cs
- SourceFileBuildProvider.cs
- LayeredChannelListener.cs