Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / ListViewDataItem.cs / 1305376 / ListViewDataItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.Diagnostics.CodeAnalysis; using System.Web; using System.Web.UI; namespace System.Web.UI.WebControls { public class ListViewDataItem : ListViewItem { private int _dataItemIndex; private int _displayIndex; private object _dataItem; public ListViewDataItem(int dataItemIndex, int displayIndex) : base(ListViewItemType.DataItem) { _dataItemIndex = dataItemIndex; _displayIndex = displayIndex; } public override object DataItem { get { return _dataItem; } set { _dataItem = value; } } public override int DataItemIndex { get { return _dataItemIndex; } } public override int DisplayIndex { get { return _displayIndex; } } [SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers", MessageId = "1#")] protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { ListViewCommandEventArgs args = new ListViewCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.Diagnostics.CodeAnalysis; using System.Web; using System.Web.UI; namespace System.Web.UI.WebControls { public class ListViewDataItem : ListViewItem { private int _dataItemIndex; private int _displayIndex; private object _dataItem; public ListViewDataItem(int dataItemIndex, int displayIndex) : base(ListViewItemType.DataItem) { _dataItemIndex = dataItemIndex; _displayIndex = displayIndex; } public override object DataItem { get { return _dataItem; } set { _dataItem = value; } } public override int DataItemIndex { get { return _dataItemIndex; } } public override int DisplayIndex { get { return _displayIndex; } } [SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers", MessageId = "1#")] protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { ListViewCommandEventArgs args = new ListViewCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } } } // 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
- RIPEMD160.cs
- SoapFault.cs
- InkCollectionBehavior.cs
- JulianCalendar.cs
- ProfileSettingsCollection.cs
- ForeignConstraint.cs
- filewebresponse.cs
- TagMapInfo.cs
- MobileResource.cs
- translator.cs
- DbUpdateCommandTree.cs
- RIPEMD160Managed.cs
- DataGridState.cs
- COM2IDispatchConverter.cs
- DataGridViewRowCancelEventArgs.cs
- BitmapCacheBrush.cs
- ListViewAutomationPeer.cs
- TextSelectionHighlightLayer.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XmlSchemaResource.cs
- OSFeature.cs
- IndentTextWriter.cs
- TextEditorTyping.cs
- ScriptControlManager.cs
- StandardCommands.cs
- Tuple.cs
- DesignerEditorPartChrome.cs
- SafeCertificateStore.cs
- WCFModelStrings.Designer.cs
- COM2FontConverter.cs
- ResXResourceWriter.cs
- BufferBuilder.cs
- SafeHandle.cs
- FieldNameLookup.cs
- FontFamilyConverter.cs
- RangeValidator.cs
- ValidationResult.cs
- EditableLabelControl.cs
- HttpApplicationStateBase.cs
- SafeReadContext.cs
- SqlCacheDependencyDatabase.cs
- updateconfighost.cs
- TextWriterTraceListener.cs
- CustomErrorsSection.cs
- MasterPageBuildProvider.cs
- ComboBoxRenderer.cs
- CompilationUtil.cs
- RuntimeHelpers.cs
- ConfigurationElement.cs
- SubclassTypeValidator.cs
- SqlVersion.cs
- ThreadStateException.cs
- IntegerValidatorAttribute.cs
- EdmRelationshipRoleAttribute.cs
- ActivationArguments.cs
- BamlResourceSerializer.cs
- SafeArrayTypeMismatchException.cs
- LogExtent.cs
- DescendantQuery.cs
- RectangleGeometry.cs
- CompilerGlobalScopeAttribute.cs
- XslNumber.cs
- RulePatternOps.cs
- AttributeEmitter.cs
- TextTreeTextElementNode.cs
- CultureMapper.cs
- CapabilitiesSection.cs
- ReliabilityContractAttribute.cs
- ThreadStateException.cs
- Rect.cs
- DefaultEventAttribute.cs
- XmlAggregates.cs
- MergePropertyDescriptor.cs
- EmbeddedObject.cs
- SqlBooleanMismatchVisitor.cs
- RemotingConfiguration.cs
- PassportAuthentication.cs
- SqlTriggerContext.cs
- Types.cs
- Evaluator.cs
- CachedTypeface.cs
- TextElementAutomationPeer.cs
- DataGridViewRowEventArgs.cs
- InheritedPropertyChangedEventArgs.cs
- SqlClientMetaDataCollectionNames.cs
- StrokeNode.cs
- SchemaImporterExtensionElement.cs
- NegotiateStream.cs
- ColorAnimationUsingKeyFrames.cs
- ObjectRef.cs
- RSAPKCS1SignatureFormatter.cs
- basemetadatamappingvisitor.cs
- HostProtectionException.cs
- PathFigureCollection.cs
- WpfKnownType.cs
- CodeTypeConstructor.cs
- xsdvalidator.cs
- CssStyleCollection.cs
- FontStyle.cs
- FontFamilyConverter.cs