Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / DataGridItem.cs / 1 / DataGridItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Web.UI; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class DataGridItem : TableRow, IDataItemContainer { private int itemIndex; private int dataSetIndex; private ListItemType itemType; private object dataItem; ///Represents an individual item in the ///. /// public DataGridItem(int itemIndex, int dataSetIndex, ListItemType itemType) { this.itemIndex = itemIndex; this.dataSetIndex = dataSetIndex; this.itemType = itemType; } ///Initializes a new instance of the ///class. /// public virtual object DataItem { get { return dataItem; } set { dataItem = value; } } ///Represents an item in the ///. /// public virtual int DataSetIndex { get { return dataSetIndex; } } ///Indicates the data set index number. This property is read-only. ////// public virtual int ItemIndex { get { return itemIndex; } } ///Indicates the index of the item in the ///. This property is /// read-only. /// public virtual ListItemType ItemType { get { return itemType; } } ///Indicates the type of the item in the ///. /// /// protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { DataGridCommandEventArgs args = new DataGridCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } ////// /// protected internal virtual void SetItemType(ListItemType itemType) { this.itemType = itemType; } ////// /// object IDataItemContainer.DataItem { get { return DataItem; } } int IDataItemContainer.DataItemIndex { get { return DataSetIndex; } } int IDataItemContainer.DisplayIndex { get { return ItemIndex; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DispatcherProcessingDisabled.cs
- ChangeNode.cs
- WindowsHyperlink.cs
- PowerEase.cs
- AsymmetricSignatureFormatter.cs
- TextServicesManager.cs
- Flattener.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- RangeValuePatternIdentifiers.cs
- StaticExtensionConverter.cs
- OleDbErrorCollection.cs
- DesignerOptionService.cs
- GlobalizationAssembly.cs
- CallContext.cs
- AnimationException.cs
- SystemTcpConnection.cs
- FormView.cs
- X509ServiceCertificateAuthentication.cs
- RuleConditionDialog.cs
- XhtmlBasicTextBoxAdapter.cs
- TraceContextRecord.cs
- Window.cs
- CapabilitiesRule.cs
- ColorBlend.cs
- PageRouteHandler.cs
- BreakSafeBase.cs
- WindowClosedEventArgs.cs
- CodeDomDesignerLoader.cs
- SqlBulkCopyColumnMapping.cs
- remotingproxy.cs
- DataTableMapping.cs
- ColorContextHelper.cs
- basevalidator.cs
- CharAnimationUsingKeyFrames.cs
- AssemblyBuilder.cs
- BindingExpression.cs
- Point3DKeyFrameCollection.cs
- LogExtentCollection.cs
- StrokeRenderer.cs
- MarkupWriter.cs
- ConfigurationManager.cs
- SafeEventLogWriteHandle.cs
- DispatcherSynchronizationContext.cs
- httpapplicationstate.cs
- CharStorage.cs
- ScalarConstant.cs
- ScrollPattern.cs
- SmiMetaData.cs
- SelectedGridItemChangedEvent.cs
- objectresult_tresulttype.cs
- ToolStripHighContrastRenderer.cs
- RequestStatusBarUpdateEventArgs.cs
- ParallelQuery.cs
- BinaryQueryOperator.cs
- Transform3D.cs
- KeyedCollection.cs
- PropertyMetadata.cs
- UnsafeNativeMethodsCLR.cs
- ServiceContractListItemList.cs
- DbConnectionPoolGroupProviderInfo.cs
- _LoggingObject.cs
- GatewayIPAddressInformationCollection.cs
- DesignTimeTemplateParser.cs
- GeneralTransform3D.cs
- NodeInfo.cs
- StylusOverProperty.cs
- DataGridViewElement.cs
- ModelTreeManager.cs
- RegexCode.cs
- QilList.cs
- ScopelessEnumAttribute.cs
- _DynamicWinsockMethods.cs
- XmlElementList.cs
- Paragraph.cs
- CompiledScopeCriteria.cs
- BaseCollection.cs
- ObjectDataSourceDesigner.cs
- ConnectionStringsExpressionEditor.cs
- FrameworkObject.cs
- MetadataFile.cs
- FileCodeGroup.cs
- EmptyEnumerator.cs
- KeyValuePairs.cs
- AutomationPeer.cs
- CommonDialog.cs
- HostedElements.cs
- NegatedConstant.cs
- versioninfo.cs
- remotingproxy.cs
- SerialPort.cs
- DefaultSection.cs
- CommonObjectSecurity.cs
- LoginName.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- UnmanagedMarshal.cs
- TextParagraphCache.cs
- GridViewUpdateEventArgs.cs
- BitmapImage.cs
- GetPageNumberCompletedEventArgs.cs
- RegexParser.cs