Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DynamicRouteExpression.cs
- DummyDataSource.cs
- EnterpriseServicesHelper.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- TokenBasedSet.cs
- MetadataItem_Static.cs
- ToolStripSplitStackLayout.cs
- InternalMappingException.cs
- FileController.cs
- XmlObjectSerializerWriteContext.cs
- NamespaceDecl.cs
- HandlerFactoryWrapper.cs
- WebPartsSection.cs
- ViewCellSlot.cs
- SiteMapNodeItemEventArgs.cs
- GridViewSelectEventArgs.cs
- Size3DValueSerializer.cs
- ReaderWriterLock.cs
- DeclarativeConditionsCollection.cs
- FontConverter.cs
- SerializationInfo.cs
- SafeRightsManagementPubHandle.cs
- HashCodeCombiner.cs
- CFGGrammar.cs
- TextRenderer.cs
- DataGridViewRowsRemovedEventArgs.cs
- WebPartConnectionsConfigureVerb.cs
- ScrollEvent.cs
- Font.cs
- ServiceManagerHandle.cs
- System.Data.OracleClient_BID.cs
- ToolStripSettings.cs
- LogEntrySerialization.cs
- Literal.cs
- SqlWebEventProvider.cs
- ObjectAnimationUsingKeyFrames.cs
- DynamicQueryableWrapper.cs
- Scanner.cs
- HttpFileCollection.cs
- DllNotFoundException.cs
- Parameter.cs
- ChainedAsyncResult.cs
- ResourceIDHelper.cs
- Material.cs
- SecurityRuntime.cs
- oledbmetadatacollectionnames.cs
- XmlCharType.cs
- CharacterMetricsDictionary.cs
- DrawingAttributes.cs
- LinqDataSourceDeleteEventArgs.cs
- ParserStack.cs
- IntegerValidator.cs
- ToolboxItemWrapper.cs
- LeftCellWrapper.cs
- ContentControl.cs
- TextSelectionHighlightLayer.cs
- GridViewUpdateEventArgs.cs
- ChannelServices.cs
- RuntimeResourceSet.cs
- ComponentEditorForm.cs
- SoapFormatExtensions.cs
- StagingAreaInputItem.cs
- SqlCacheDependencySection.cs
- InputElement.cs
- CommentGlyph.cs
- KnownTypeAttribute.cs
- SQLGuid.cs
- TemplateBuilder.cs
- ScriptHandlerFactory.cs
- ExceptionRoutedEventArgs.cs
- XmlNodeChangedEventArgs.cs
- XmlAttributeCollection.cs
- XpsResourceDictionary.cs
- WebPartExportVerb.cs
- FixedTextView.cs
- BindValidationContext.cs
- Documentation.cs
- AdPostCacheSubstitution.cs
- RawUIStateInputReport.cs
- TextServicesCompartmentEventSink.cs
- ALinqExpressionVisitor.cs
- ToolStripPanelRenderEventArgs.cs
- XsdCachingReader.cs
- GridViewDeletedEventArgs.cs
- TextCompositionEventArgs.cs
- MenuCommand.cs
- QueryRewriter.cs
- Image.cs
- AppSettingsSection.cs
- PrtTicket_Public.cs
- CapiSymmetricAlgorithm.cs
- LocationSectionRecord.cs
- HitTestWithGeometryDrawingContextWalker.cs
- InternalSafeNativeMethods.cs
- AliasedExpr.cs
- FileStream.cs
- PassportPrincipal.cs
- OperationAbortedException.cs
- BufferedWebEventProvider.cs
- Array.cs