Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / ListViewItem.cs / 1305376 / ListViewItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Web; using System.Web.UI; namespace System.Web.UI.WebControls { [ ToolboxItem(false) ] // ListViewItem is an IDataItemContainer so that we can have controls that databind in the ListView's InsertItem. public class ListViewItem : Control, INamingContainer, IDataItemContainer { private ListViewItemType _itemType; public ListViewItem(ListViewItemType itemType) { _itemType = itemType; } public ListViewItemType ItemType { get { return _itemType; } } // DataItem in will always return null. public virtual object DataItem { get; set; } public virtual int DataItemIndex { get { return -1; } } public virtual int DisplayIndex { get { return -1; } } [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.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Web; using System.Web.UI; namespace System.Web.UI.WebControls { [ ToolboxItem(false) ] // ListViewItem is an IDataItemContainer so that we can have controls that databind in the ListView's InsertItem. public class ListViewItem : Control, INamingContainer, IDataItemContainer { private ListViewItemType _itemType; public ListViewItem(ListViewItemType itemType) { _itemType = itemType; } public ListViewItemType ItemType { get { return _itemType; } } // DataItem in will always return null. public virtual object DataItem { get; set; } public virtual int DataItemIndex { get { return -1; } } public virtual int DisplayIndex { get { return -1; } } [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
- ToolStripSystemRenderer.cs
- EventLogEntry.cs
- Vector.cs
- XmlConverter.cs
- TraceSection.cs
- NetCodeGroup.cs
- BulletedListEventArgs.cs
- SystemIPGlobalStatistics.cs
- Sequence.cs
- MsmqProcessProtocolHandler.cs
- StorageEndPropertyMapping.cs
- PrintPreviewGraphics.cs
- ListBindableAttribute.cs
- EntityObject.cs
- SecureEnvironment.cs
- Material.cs
- XmlSchemaSequence.cs
- RouteItem.cs
- UpdateTracker.cs
- storepermission.cs
- InternalResources.cs
- CapiNative.cs
- FloatUtil.cs
- HttpListenerException.cs
- DataBoundControlDesigner.cs
- WebResourceAttribute.cs
- JumpList.cs
- TextContainerHelper.cs
- WindowInteropHelper.cs
- SkinBuilder.cs
- WebPartMovingEventArgs.cs
- HotSpotCollection.cs
- PackageProperties.cs
- MaterialCollection.cs
- Panel.cs
- StylusButton.cs
- DataGridViewCellStyle.cs
- FileSystemWatcher.cs
- ServiceChannel.cs
- BeginEvent.cs
- ListMarkerLine.cs
- _SslSessionsCache.cs
- ValidationManager.cs
- Queue.cs
- HttpListenerResponse.cs
- ConnectionStringsSection.cs
- GregorianCalendarHelper.cs
- HttpRequest.cs
- HMACSHA256.cs
- DropDownHolder.cs
- SerializationSectionGroup.cs
- DataGridPagerStyle.cs
- ListViewItemSelectionChangedEvent.cs
- SQLBinaryStorage.cs
- Font.cs
- Rotation3DKeyFrameCollection.cs
- DirectoryRootQuery.cs
- SqlRetyper.cs
- HttpsHostedTransportConfiguration.cs
- CurrentChangingEventArgs.cs
- Rotation3DAnimation.cs
- DbBuffer.cs
- Trace.cs
- UIElement.cs
- ToolStripInSituService.cs
- RepeatInfo.cs
- LinearGradientBrush.cs
- odbcmetadatacolumnnames.cs
- FacetValueContainer.cs
- MeasureData.cs
- ControlValuePropertyAttribute.cs
- ListViewDeletedEventArgs.cs
- GlyphElement.cs
- RegexCapture.cs
- TileModeValidation.cs
- DateTimeConverter.cs
- Activation.cs
- BaseCodeDomTreeGenerator.cs
- bindurihelper.cs
- SQLConvert.cs
- CapiNative.cs
- PublisherMembershipCondition.cs
- AttributedMetaModel.cs
- TypeElement.cs
- XPathScanner.cs
- CellConstantDomain.cs
- RoutedEventArgs.cs
- DelegateHelpers.Generated.cs
- TransformConverter.cs
- TraceUtils.cs
- CreateParams.cs
- x509utils.cs
- PtsHost.cs
- ThreadAbortException.cs
- SourceItem.cs
- WebBaseEventKeyComparer.cs
- WorkflowDesignerColors.cs
- CreateUserWizardStep.cs
- StorageFunctionMapping.cs
- PreProcessInputEventArgs.cs