Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientTargetCollection.cs
- KeyboardNavigation.cs
- PassportAuthenticationModule.cs
- GifBitmapDecoder.cs
- HwndAppCommandInputProvider.cs
- tibetanshape.cs
- PassportAuthentication.cs
- CheckBoxFlatAdapter.cs
- StrokeCollection.cs
- BlockExpression.cs
- Serializer.cs
- AccessDataSource.cs
- FloaterParagraph.cs
- ListDictionary.cs
- XmlArrayItemAttribute.cs
- InfoCardPolicy.cs
- RefreshEventArgs.cs
- SqlWorkflowPersistenceService.cs
- QueryFunctions.cs
- OdbcFactory.cs
- CompilerCollection.cs
- XsltSettings.cs
- SignedXml.cs
- PerformanceCounter.cs
- PanelStyle.cs
- ComponentConverter.cs
- __ConsoleStream.cs
- Path.cs
- OutOfProcStateClientManager.cs
- Symbol.cs
- CodeSubDirectory.cs
- WebPartDisplayModeCancelEventArgs.cs
- nulltextcontainer.cs
- FileSystemWatcher.cs
- StreamGeometry.cs
- AccessedThroughPropertyAttribute.cs
- TdsParserStaticMethods.cs
- ToolStripSeparator.cs
- DurationConverter.cs
- XmlObjectSerializer.cs
- TextModifierScope.cs
- login.cs
- TabItemAutomationPeer.cs
- CodeComment.cs
- IndexerNameAttribute.cs
- EncryptedXml.cs
- NamespaceMapping.cs
- Schema.cs
- StylusTip.cs
- DropSource.cs
- DataSourceHelper.cs
- CachedRequestParams.cs
- Single.cs
- XmlQueryTypeFactory.cs
- ContextDataSourceView.cs
- ResourcesChangeInfo.cs
- ReversePositionQuery.cs
- ManagedFilter.cs
- EntityTemplateFactory.cs
- Sql8ExpressionRewriter.cs
- DataSourceConverter.cs
- TargetControlTypeAttribute.cs
- IndexOutOfRangeException.cs
- SocketPermission.cs
- SQLStringStorage.cs
- PolyLineSegment.cs
- AdapterUtil.cs
- Label.cs
- RepeatBehavior.cs
- FixUpCollection.cs
- SequenceDesigner.cs
- BitStack.cs
- SectionRecord.cs
- PeerChannelListener.cs
- PolyLineSegment.cs
- Int16Animation.cs
- MaskedTextBoxTextEditorDropDown.cs
- Screen.cs
- HandlerBase.cs
- FontCollection.cs
- WebPartConnectionCollection.cs
- QuaternionRotation3D.cs
- GridLength.cs
- XmlQueryRuntime.cs
- ExpressionBuilderCollection.cs
- SplineQuaternionKeyFrame.cs
- Message.cs
- relpropertyhelper.cs
- UnsafeNativeMethodsTablet.cs
- ObjectQuery.cs
- HtmlInputButton.cs
- GenericNameHandler.cs
- RequestCachingSection.cs
- Trigger.cs
- DataGridCell.cs
- UnsafeNativeMethods.cs
- PathData.cs
- ICspAsymmetricAlgorithm.cs
- BasicExpressionVisitor.cs
- NamedElement.cs