Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / ListViewDeleteEventArgs.cs / 1305376 / ListViewDeleteEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections.Specialized;
using System.ComponentModel;
namespace System.Web.UI.WebControls {
public class ListViewDeleteEventArgs : CancelEventArgs {
private int _itemIndex;
private OrderedDictionary _values;
private OrderedDictionary _keys;
public ListViewDeleteEventArgs(int itemIndex) : base(false) {
_itemIndex = itemIndex;
}
///
/// Gets the int argument to the command posted to the . This property is read-only.
///
public int ItemIndex {
get {
return _itemIndex;
}
}
///
/// Gets a keyed list to populate with updated row values. This property is read-only.
///
public IOrderedDictionary Keys {
get {
if (_keys == null) {
_keys = new OrderedDictionary();
}
return _keys;
}
}
///
/// Gets a OrderedDictionary to populate with updated row values. This property is read-only.
///
public IOrderedDictionary Values {
get {
if (_values == null) {
_values = new OrderedDictionary();
}
return _values;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections.Specialized;
using System.ComponentModel;
namespace System.Web.UI.WebControls {
public class ListViewDeleteEventArgs : CancelEventArgs {
private int _itemIndex;
private OrderedDictionary _values;
private OrderedDictionary _keys;
public ListViewDeleteEventArgs(int itemIndex) : base(false) {
_itemIndex = itemIndex;
}
///
/// Gets the int argument to the command posted to the . This property is read-only.
///
public int ItemIndex {
get {
return _itemIndex;
}
}
///
/// Gets a keyed list to populate with updated row values. This property is read-only.
///
public IOrderedDictionary Keys {
get {
if (_keys == null) {
_keys = new OrderedDictionary();
}
return _keys;
}
}
///
/// Gets a OrderedDictionary to populate with updated row values. This property is read-only.
///
public IOrderedDictionary Values {
get {
if (_values == null) {
_values = new OrderedDictionary();
}
return _values;
}
}
}
}
// 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
- ListViewInsertionMark.cs
- PackageDigitalSignature.cs
- FunctionDefinition.cs
- CreateUserWizard.cs
- Timer.cs
- TextElement.cs
- DataTableClearEvent.cs
- WorkflowDebuggerSteppingAttribute.cs
- SoapInteropTypes.cs
- HttpRuntime.cs
- ModelVisual3D.cs
- Columns.cs
- HtmlHead.cs
- FontCollection.cs
- AttributeQuery.cs
- CompiledRegexRunnerFactory.cs
- DiscoveryReferences.cs
- ConfigXmlSignificantWhitespace.cs
- LocatorBase.cs
- QueuePathDialog.cs
- RouteParametersHelper.cs
- SHA256Managed.cs
- BitmapDownload.cs
- InternalsVisibleToAttribute.cs
- UserUseLicenseDictionaryLoader.cs
- HostSecurityManager.cs
- GroupAggregateExpr.cs
- LastQueryOperator.cs
- CodeEventReferenceExpression.cs
- ListItemCollection.cs
- StructuralType.cs
- DesignerVerbCollection.cs
- returneventsaver.cs
- TextBoxBase.cs
- ProviderSettingsCollection.cs
- GridViewRow.cs
- EntityCommandExecutionException.cs
- TdsRecordBufferSetter.cs
- ObjectIDGenerator.cs
- ActionMessageFilterTable.cs
- Size.cs
- DefaultShape.cs
- PositiveTimeSpanValidatorAttribute.cs
- PointAnimation.cs
- SafeCertificateContext.cs
- EntityTypeEmitter.cs
- SqlIdentifier.cs
- ImportOptions.cs
- CodeTypeDeclaration.cs
- DataGridTableCollection.cs
- RoutingChannelExtension.cs
- ClientSettingsSection.cs
- RuleElement.cs
- MappingItemCollection.cs
- EventSourceCreationData.cs
- ExpressionDumper.cs
- ToolTip.cs
- DSASignatureFormatter.cs
- AnonymousIdentificationSection.cs
- DeclarativeCatalogPartDesigner.cs
- DetailsViewAutoFormat.cs
- RsaSecurityToken.cs
- XPathItem.cs
- MultiBindingExpression.cs
- ChannelManager.cs
- SmtpReplyReader.cs
- KeyedCollection.cs
- WebRequestModuleElementCollection.cs
- FloaterParagraph.cs
- SmtpAuthenticationManager.cs
- TTSEngineProxy.cs
- CorrelationInitializer.cs
- MasterPageParser.cs
- DependencyPropertyValueSerializer.cs
- BitVector32.cs
- connectionpool.cs
- CachedFontFace.cs
- SystemPens.cs
- MessageEncodingBindingElementImporter.cs
- IdentityHolder.cs
- PenThreadPool.cs
- WebServiceReceiveDesigner.cs
- NegatedCellConstant.cs
- DataServiceHostWrapper.cs
- BevelBitmapEffect.cs
- ClipboardProcessor.cs
- EditorZoneBase.cs
- ColumnResizeUndoUnit.cs
- AnimationLayer.cs
- ProfileInfo.cs
- ListParagraph.cs
- Soap.cs
- StructuralType.cs
- WebPartCloseVerb.cs
- Operand.cs
- ListViewDeleteEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- ACL.cs
- OletxResourceManager.cs
- ManifestSignedXml.cs