Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / GridViewUpdateEventArgs.cs / 1305376 / GridViewUpdateEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
///
/// Provides data for some events.
///
public class GridViewUpdateEventArgs : CancelEventArgs {
private int _rowIndex;
private OrderedDictionary _values;
private OrderedDictionary _keys;
private OrderedDictionary _oldValues;
///
/// Initializes a new instance of the
/// class.
///
public GridViewUpdateEventArgs(int rowIndex) : base(false) {
this._rowIndex = rowIndex;
}
///
/// 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 NewValues {
get {
if (_values == null) {
_values = new OrderedDictionary();
}
return _values;
}
}
///
/// Gets a OrderedDictionary to populate with pre-edit row values. This property is read-only.
///
public IOrderedDictionary OldValues {
get {
if (_oldValues == null) {
_oldValues = new OrderedDictionary();
}
return _oldValues;
}
}
///
/// Gets the int argument to the command posted to the . This property is read-only.
///
public int RowIndex {
get {
return _rowIndex;
}
}
}
}
// 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.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
///
/// Provides data for some events.
///
public class GridViewUpdateEventArgs : CancelEventArgs {
private int _rowIndex;
private OrderedDictionary _values;
private OrderedDictionary _keys;
private OrderedDictionary _oldValues;
///
/// Initializes a new instance of the
/// class.
///
public GridViewUpdateEventArgs(int rowIndex) : base(false) {
this._rowIndex = rowIndex;
}
///
/// 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 NewValues {
get {
if (_values == null) {
_values = new OrderedDictionary();
}
return _values;
}
}
///
/// Gets a OrderedDictionary to populate with pre-edit row values. This property is read-only.
///
public IOrderedDictionary OldValues {
get {
if (_oldValues == null) {
_oldValues = new OrderedDictionary();
}
return _oldValues;
}
}
///
/// Gets the int argument to the command posted to the . This property is read-only.
///
public int RowIndex {
get {
return _rowIndex;
}
}
}
}
// 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
- WorkflowTransactionOptions.cs
- GlyphRunDrawing.cs
- XpsImageSerializationService.cs
- EditorZoneBase.cs
- JsonReader.cs
- StaticSiteMapProvider.cs
- TypeSystem.cs
- UriExt.cs
- CultureInfoConverter.cs
- CompilerGeneratedAttribute.cs
- SmuggledIUnknown.cs
- DetailsViewRow.cs
- HyperLinkField.cs
- TextSpanModifier.cs
- RepeatButton.cs
- MemberInfoSerializationHolder.cs
- storepermissionattribute.cs
- Mapping.cs
- SizeAnimation.cs
- CipherData.cs
- SystemIPInterfaceProperties.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Stack.cs
- DataGridViewColumnEventArgs.cs
- ProjectionPathSegment.cs
- SourceFileInfo.cs
- __ConsoleStream.cs
- DataListItem.cs
- SetIterators.cs
- BufferAllocator.cs
- ColumnMapProcessor.cs
- ScrollBar.cs
- StylusDownEventArgs.cs
- InfocardClientCredentials.cs
- SeekStoryboard.cs
- SerializationObjectManager.cs
- IndentTextWriter.cs
- GenericEnumConverter.cs
- SafeUserTokenHandle.cs
- DynamicMetaObjectBinder.cs
- ListParaClient.cs
- InvariantComparer.cs
- AuthenticodeSignatureInformation.cs
- AnnotationResourceChangedEventArgs.cs
- ScrollEvent.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- MetadataConversionError.cs
- WebPartCatalogAddVerb.cs
- OracleConnectionStringBuilder.cs
- DataTransferEventArgs.cs
- EnumCodeDomSerializer.cs
- WebPartConnectVerb.cs
- EventLogTraceListener.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XmlSchemaCollection.cs
- TypeLoadException.cs
- DataBindingExpressionBuilder.cs
- SystemBrushes.cs
- HandlerMappingMemo.cs
- TypeForwardedToAttribute.cs
- CodeDOMUtility.cs
- LinqDataSourceSelectEventArgs.cs
- GatewayDefinition.cs
- ReadOnlyCollectionBase.cs
- PersonalizationStateInfo.cs
- COM2EnumConverter.cs
- GenericWebPart.cs
- MailWebEventProvider.cs
- PerformanceCounterCategory.cs
- CompressedStack.cs
- BitmapSizeOptions.cs
- IfElseDesigner.xaml.cs
- Model3DGroup.cs
- SHA512.cs
- ExceptionHelpers.cs
- SineEase.cs
- WindowsNonControl.cs
- XmlDataSource.cs
- ComponentChangingEvent.cs
- ISessionStateStore.cs
- Aggregates.cs
- Thread.cs
- TwoPhaseCommit.cs
- IdnElement.cs
- IndexedEnumerable.cs
- Schema.cs
- DropTarget.cs
- ConfigurationProperty.cs
- DSACryptoServiceProvider.cs
- CodeGenerator.cs
- DefaultValidator.cs
- HelpKeywordAttribute.cs
- WebPartTransformerCollection.cs
- PlainXmlSerializer.cs
- RelationshipFixer.cs
- SqlDelegatedTransaction.cs
- filewebresponse.cs
- LightweightCodeGenerator.cs
- DynamicDocumentPaginator.cs
- connectionpool.cs