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
- FontUnit.cs
- HtmlInputPassword.cs
- Int64.cs
- SqlProvider.cs
- TitleStyle.cs
- ToolStripGripRenderEventArgs.cs
- ObjectSet.cs
- AnnotationObservableCollection.cs
- RawStylusInputCustomDataList.cs
- FloaterBaseParaClient.cs
- SafeNativeMethodsOther.cs
- OrderedDictionaryStateHelper.cs
- BaseInfoTable.cs
- Variant.cs
- BinaryOperationBinder.cs
- WindowsRebar.cs
- DesignerVerb.cs
- XamlBuildProvider.cs
- QilDataSource.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ValueSerializerAttribute.cs
- SubqueryTrackingVisitor.cs
- MSAAWinEventWrap.cs
- CreateParams.cs
- WebPartMenu.cs
- FacetChecker.cs
- XsltInput.cs
- DataServiceQueryContinuation.cs
- InkCanvasSelectionAdorner.cs
- TTSVoice.cs
- ObjectDisposedException.cs
- CorrelationService.cs
- OracleTimeSpan.cs
- ConnectionsZone.cs
- AutomationEvent.cs
- MessageBox.cs
- documentsequencetextview.cs
- PrincipalPermission.cs
- TypeUtil.cs
- DragEvent.cs
- PointCollection.cs
- ModuleConfigurationInfo.cs
- WebPartActionVerb.cs
- TransformerInfo.cs
- DataIdProcessor.cs
- MarkupExtensionParser.cs
- FontFamily.cs
- ContentType.cs
- RequestTimeoutManager.cs
- HtmlImageAdapter.cs
- XmlSecureResolver.cs
- IIS7UserPrincipal.cs
- XamlWrappingReader.cs
- DataViewManagerListItemTypeDescriptor.cs
- Int16.cs
- WindowVisualStateTracker.cs
- TabletDeviceInfo.cs
- PerformanceCounterPermission.cs
- SchemaName.cs
- IImplicitResourceProvider.cs
- HwndTarget.cs
- Bezier.cs
- DiscoveryDocumentLinksPattern.cs
- MouseButton.cs
- ScrollableControl.cs
- RelationshipNavigation.cs
- AspNetHostingPermission.cs
- Marshal.cs
- ToolStripGrip.cs
- SqlMethodTransformer.cs
- WmfPlaceableFileHeader.cs
- CharEnumerator.cs
- SelectionBorderGlyph.cs
- AxHost.cs
- IndentedTextWriter.cs
- basemetadatamappingvisitor.cs
- StylusPointDescription.cs
- DocumentViewerBaseAutomationPeer.cs
- ButtonPopupAdapter.cs
- TextTreeTextNode.cs
- XmlHelper.cs
- BinaryNegotiation.cs
- LogSwitch.cs
- ExpressionConverter.cs
- UserMapPath.cs
- Typography.cs
- IgnoreDataMemberAttribute.cs
- Graph.cs
- IsolatedStorageFile.cs
- StylusDownEventArgs.cs
- CodeCommentStatementCollection.cs
- DocumentEventArgs.cs
- Evaluator.cs
- ResourcesBuildProvider.cs
- ReflectionPermission.cs
- AuthenticationSchemesHelper.cs
- CapacityStreamGeometryContext.cs
- DataGridViewRowPostPaintEventArgs.cs
- SetIterators.cs
- RepeaterItemEventArgs.cs