Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / GridViewCommandEventArgs.cs / 1 / GridViewCommandEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.Security.Permissions;
///
/// Provides data for some events.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
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.
///
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.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.Security.Permissions;
///
/// Provides data for some events.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
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.
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextPattern.cs
- XmlSerializerNamespaces.cs
- BitmapFrameEncode.cs
- XmlSchemaParticle.cs
- RotateTransform3D.cs
- UnsafeNativeMethods.cs
- Object.cs
- PersonalizationStateInfoCollection.cs
- DesignerView.xaml.cs
- ListViewHitTestInfo.cs
- ScaleTransform.cs
- UrlAuthFailedErrorFormatter.cs
- ClientEventManager.cs
- cookiecontainer.cs
- InstallerTypeAttribute.cs
- SecurityState.cs
- XmlDataProvider.cs
- DesignTimeSiteMapProvider.cs
- TextServicesProperty.cs
- DataGridItemEventArgs.cs
- ExecutionEngineException.cs
- DeclaredTypeElement.cs
- SecurityProtocolCorrelationState.cs
- XmlSchemaAnnotated.cs
- XamlFrame.cs
- WindowsFont.cs
- KeyValuePair.cs
- TextShapeableCharacters.cs
- StylusTip.cs
- LookupNode.cs
- OleDbMetaDataFactory.cs
- TextTrailingCharacterEllipsis.cs
- Point.cs
- StatusBarItem.cs
- TraceLog.cs
- TemplateParser.cs
- DesignObjectWrapper.cs
- AttributeProviderAttribute.cs
- QueryCacheEntry.cs
- ResourceAttributes.cs
- FixedPageProcessor.cs
- WindowsTokenRoleProvider.cs
- UInt64Converter.cs
- OleDbRowUpdatingEvent.cs
- AuthorizationPolicyTypeElement.cs
- NumericUpDownAcceleration.cs
- DataGridHeaderBorder.cs
- TargetInvocationException.cs
- CqlErrorHelper.cs
- DataBoundControl.cs
- HMACSHA512.cs
- DescendantBaseQuery.cs
- ProvidePropertyAttribute.cs
- Formatter.cs
- JoinTreeSlot.cs
- SafeCoTaskMem.cs
- InternalException.cs
- StrokeNodeOperations.cs
- InputLanguageEventArgs.cs
- GridEntry.cs
- SafeNativeMethods.cs
- GeneralTransform3DGroup.cs
- DragStartedEventArgs.cs
- CollectionsUtil.cs
- FunctionImportElement.cs
- ActiveXSite.cs
- FontCacheUtil.cs
- AutoResizedEvent.cs
- SerTrace.cs
- NullableDecimalAverageAggregationOperator.cs
- PointCollection.cs
- BindingMemberInfo.cs
- FormatConvertedBitmap.cs
- HtmlElementCollection.cs
- Matrix3DStack.cs
- PrivateFontCollection.cs
- StreamWithDictionary.cs
- SuppressMergeCheckAttribute.cs
- Cursor.cs
- ConfigurationFileMap.cs
- KeysConverter.cs
- TextEndOfSegment.cs
- SiteMembershipCondition.cs
- DataGridViewRow.cs
- EntityClientCacheKey.cs
- SqlDataAdapter.cs
- WarningException.cs
- ComponentConverter.cs
- NativeMethods.cs
- DataRowChangeEvent.cs
- InternalReceiveMessage.cs
- NumberFormatInfo.cs
- XmlBaseReader.cs
- VariableQuery.cs
- DoubleAnimationClockResource.cs
- EntityDataReader.cs
- StringExpressionSet.cs
- Compiler.cs
- HitTestDrawingContextWalker.cs
- BaseValidator.cs