Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HwndAppCommandInputProvider.cs
- ProcessExitedException.cs
- Formatter.cs
- HtmlElementErrorEventArgs.cs
- AssertFilter.cs
- TextBoxLine.cs
- FieldCollectionEditor.cs
- ContextMenuService.cs
- VBIdentifierDesigner.xaml.cs
- SchemaTableColumn.cs
- PropertyValidationContext.cs
- CursorEditor.cs
- WindowProviderWrapper.cs
- MatrixTransform.cs
- ParagraphVisual.cs
- DataColumnChangeEvent.cs
- FrameworkEventSource.cs
- CategoryGridEntry.cs
- CheckBoxField.cs
- EnvironmentPermission.cs
- SessionStateUtil.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- BuildManager.cs
- DesignerActionVerbList.cs
- SqlConnectionFactory.cs
- PointValueSerializer.cs
- Errors.cs
- ObjectView.cs
- BindingParameterCollection.cs
- PersistenceTypeAttribute.cs
- DataGridColumnCollection.cs
- CfgParser.cs
- BrowserCapabilitiesCompiler.cs
- HttpContext.cs
- PasswordRecoveryAutoFormat.cs
- CompletedAsyncResult.cs
- ElementProxy.cs
- JoinTreeNode.cs
- CounterCreationDataConverter.cs
- ConnectionInterfaceCollection.cs
- SqlFactory.cs
- Double.cs
- TextPattern.cs
- ThreadStaticAttribute.cs
- VirtualPath.cs
- NextPreviousPagerField.cs
- DataPagerFieldCommandEventArgs.cs
- assertwrapper.cs
- RoutingSection.cs
- CompositeScriptReferenceEventArgs.cs
- PublisherMembershipCondition.cs
- LoginView.cs
- WebPartRestoreVerb.cs
- ConnectionManagementSection.cs
- ListViewEditEventArgs.cs
- ExpressionParser.cs
- TrustSection.cs
- ContainerSelectorGlyph.cs
- CreateUserErrorEventArgs.cs
- MimeTypeMapper.cs
- GridViewDeletedEventArgs.cs
- RectIndependentAnimationStorage.cs
- HitTestFilterBehavior.cs
- LicenseContext.cs
- ErrorEventArgs.cs
- EventLogEntry.cs
- PopOutPanel.cs
- InkCanvasSelection.cs
- IRCollection.cs
- RelationshipConstraintValidator.cs
- BinaryObjectInfo.cs
- BitmapEncoder.cs
- SessionStateModule.cs
- SafeBitVector32.cs
- NetworkCredential.cs
- AutomationTextAttribute.cs
- SecurityTokenProvider.cs
- _ListenerAsyncResult.cs
- SvcMapFile.cs
- MailDefinition.cs
- Gdiplus.cs
- ParameterToken.cs
- ToolStripEditorManager.cs
- TransactionInformation.cs
- SBCSCodePageEncoding.cs
- ProfilePropertySettingsCollection.cs
- DBConnectionString.cs
- OpenTypeLayout.cs
- CurrentChangingEventManager.cs
- DecimalStorage.cs
- RoleService.cs
- NavigationProgressEventArgs.cs
- DateTimeConstantAttribute.cs
- AutoSizeComboBox.cs
- DataGridDesigner.cs
- BaseDataListDesigner.cs
- UnmanagedMemoryStream.cs
- ReadOnlyCollection.cs
- CodeParameterDeclarationExpression.cs
- WebSysDefaultValueAttribute.cs