Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / ListViewDataItem.cs / 1 / 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 { [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ListViewDataItem : ListViewItem, IDataItemContainer { private int _dataItemIndex; private int _displayIndex; private object _dataItem; public ListViewDataItem(int dataItemIndex, int displayIndex) : base(ListViewItemType.DataItem) { _dataItemIndex = dataItemIndex; _displayIndex = displayIndex; } public virtual object DataItem { get { return _dataItem; } set { _dataItem = value; } } public virtual int DataItemIndex { get { return _dataItemIndex; } } public virtual 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 { [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ListViewDataItem : ListViewItem, IDataItemContainer { private int _dataItemIndex; private int _displayIndex; private object _dataItem; public ListViewDataItem(int dataItemIndex, int displayIndex) : base(ListViewItemType.DataItem) { _dataItemIndex = dataItemIndex; _displayIndex = displayIndex; } public virtual object DataItem { get { return _dataItem; } set { _dataItem = value; } } public virtual int DataItemIndex { get { return _dataItemIndex; } } public virtual 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
- LoadedOrUnloadedOperation.cs
- DataGridViewAdvancedBorderStyle.cs
- SiteMapNode.cs
- DataGridClipboardCellContent.cs
- SmtpFailedRecipientException.cs
- KeyNotFoundException.cs
- DataSetUtil.cs
- SrgsItemList.cs
- PropertyItem.cs
- XPathAxisIterator.cs
- OleDbDataAdapter.cs
- LineBreakRecord.cs
- _ConnectOverlappedAsyncResult.cs
- CryptoHelper.cs
- Group.cs
- ImageIndexConverter.cs
- TabItemWrapperAutomationPeer.cs
- ZoomingMessageFilter.cs
- MemoryStream.cs
- ResourcePermissionBase.cs
- InkCanvasSelectionAdorner.cs
- LineSegment.cs
- QilList.cs
- XamlInt32CollectionSerializer.cs
- PcmConverter.cs
- DispatcherEventArgs.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DataGridViewCheckBoxCell.cs
- StringConcat.cs
- DispatcherExceptionEventArgs.cs
- complextypematerializer.cs
- HttpRequestCacheValidator.cs
- Positioning.cs
- HostedBindingBehavior.cs
- ContractReference.cs
- PublisherIdentityPermission.cs
- WindowsBrush.cs
- GAC.cs
- TypefaceCollection.cs
- TaskHelper.cs
- AttachedProperty.cs
- PropertyDescriptorGridEntry.cs
- LockCookie.cs
- Stack.cs
- TreeNodeCollection.cs
- LocalIdKeyIdentifierClause.cs
- WeakReference.cs
- SemanticAnalyzer.cs
- ListView.cs
- altserialization.cs
- SupportsEventValidationAttribute.cs
- AnimationClock.cs
- CacheHelper.cs
- WindowsFont.cs
- MembershipUser.cs
- HtmlEmptyTagControlBuilder.cs
- XmlReaderSettings.cs
- BooleanStorage.cs
- ScrollBarRenderer.cs
- PortCache.cs
- XmlElementList.cs
- RowCache.cs
- TreeNodeMouseHoverEvent.cs
- ToolStripItem.cs
- ConfigXmlElement.cs
- SecureStringHasher.cs
- NotFiniteNumberException.cs
- glyphs.cs
- StringUtil.cs
- TimeoutHelper.cs
- UniqueIdentifierService.cs
- DetailsViewRow.cs
- LinkDescriptor.cs
- QuotedPrintableStream.cs
- FloaterBaseParaClient.cs
- BaseUriHelper.cs
- DataBindingsDialog.cs
- SoundPlayerAction.cs
- GuidelineCollection.cs
- DbgUtil.cs
- CompilerScope.cs
- Util.cs
- DocComment.cs
- HttpHandlersSection.cs
- DictionaryTraceRecord.cs
- XPathSelfQuery.cs
- TextEffect.cs
- ToolBarDesigner.cs
- TextAction.cs
- ListViewItemMouseHoverEvent.cs
- ContactManager.cs
- PasswordValidationException.cs
- MenuBindingsEditor.cs
- StructuredTypeEmitter.cs
- HtmlForm.cs
- FixedPageAutomationPeer.cs
- SafePointer.cs
- AvTrace.cs
- InputLanguageEventArgs.cs
- ADConnectionHelper.cs