Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / DataGridCommandEventArgs.cs / 1305376 / DataGridCommandEventArgs.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 DataGridCommandEventArgs : CommandEventArgs {
private DataGridItem item;
private object commandSource;
///
/// Initializes a new instance of the
/// class.
///
[SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers")]
public DataGridCommandEventArgs(DataGridItem item, object commandSource, CommandEventArgs originalArgs) : base(originalArgs) {
this.item = item;
this.commandSource = commandSource;
}
///
/// Gets the source of the command. This property is read-only.
///
public object CommandSource {
get {
return commandSource;
}
}
///
/// Gets the item in the that was clicked. This property is read-only.
///
public DataGridItem Item {
get {
return item;
}
}
}
}
// 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 DataGridCommandEventArgs : CommandEventArgs {
private DataGridItem item;
private object commandSource;
///
/// Initializes a new instance of the
/// class.
///
[SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers")]
public DataGridCommandEventArgs(DataGridItem item, object commandSource, CommandEventArgs originalArgs) : base(originalArgs) {
this.item = item;
this.commandSource = commandSource;
}
///
/// Gets the source of the command. This property is read-only.
///
public object CommandSource {
get {
return commandSource;
}
}
///
/// Gets the item in the that was clicked. This property is read-only.
///
public DataGridItem Item {
get {
return item;
}
}
}
}
// 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
- basemetadatamappingvisitor.cs
- Inflater.cs
- NullableBoolConverter.cs
- GridViewCellAutomationPeer.cs
- GridViewColumn.cs
- DbQueryCommandTree.cs
- XamlFigureLengthSerializer.cs
- DataBinder.cs
- SequentialUshortCollection.cs
- BaseDataListPage.cs
- MailMessageEventArgs.cs
- CompilationLock.cs
- WriteableBitmap.cs
- ListViewInsertionMark.cs
- DefaultEvaluationContext.cs
- Policy.cs
- StoragePropertyMapping.cs
- RectConverter.cs
- PageTheme.cs
- AutoResizedEvent.cs
- TextParagraphProperties.cs
- CommandField.cs
- ContentTextAutomationPeer.cs
- DBDataPermission.cs
- PerfService.cs
- SortedSetDebugView.cs
- UserMapPath.cs
- XmlSchemaSimpleContentExtension.cs
- HtmlTableCell.cs
- FormsIdentity.cs
- UInt16.cs
- DesignColumn.cs
- cookieexception.cs
- IgnorePropertiesAttribute.cs
- dataprotectionpermission.cs
- ListenerChannelContext.cs
- SQlBooleanStorage.cs
- DeflateEmulationStream.cs
- PerformanceCountersElement.cs
- TextDecorationCollectionConverter.cs
- DataMisalignedException.cs
- StateDesigner.Helpers.cs
- followingquery.cs
- PrivacyNoticeBindingElement.cs
- XmlCharCheckingReader.cs
- basecomparevalidator.cs
- WebPartAuthorizationEventArgs.cs
- DirectoryRedirect.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CompressedStack.cs
- NonVisualControlAttribute.cs
- DBCSCodePageEncoding.cs
- RuntimeEnvironment.cs
- ResourcesGenerator.cs
- DataListItem.cs
- RawAppCommandInputReport.cs
- GrammarBuilderRuleRef.cs
- DebuggerAttributes.cs
- AngleUtil.cs
- MimeParameter.cs
- PropertyEmitterBase.cs
- safex509handles.cs
- WebPartConnectionsCancelEventArgs.cs
- BindValidator.cs
- CounterCreationData.cs
- WeakReferenceEnumerator.cs
- AsymmetricSignatureFormatter.cs
- CompilerResults.cs
- CopyCodeAction.cs
- InArgumentConverter.cs
- EditorPartChrome.cs
- RadialGradientBrush.cs
- DataServiceClientException.cs
- Point3DAnimation.cs
- TdsRecordBufferSetter.cs
- DrawToolTipEventArgs.cs
- SqlNamer.cs
- DecimalKeyFrameCollection.cs
- ExtendedPropertyDescriptor.cs
- TextRenderingModeValidation.cs
- AuthStoreRoleProvider.cs
- Missing.cs
- SoapHeader.cs
- SetStateEventArgs.cs
- PersonalizationProviderCollection.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ConsoleKeyInfo.cs
- PolicyLevel.cs
- TextControlDesigner.cs
- DrawingAttributes.cs
- RegexStringValidatorAttribute.cs
- InProcStateClientManager.cs
- Imaging.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- AppDomainShutdownMonitor.cs
- UserControl.cs
- PathFigureCollectionValueSerializer.cs
- XmlReflectionMember.cs
- RegexCompiler.cs
- DelegateSerializationHolder.cs