Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / GridViewRow.cs / 1 / GridViewRow.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class GridViewRow : TableRow, IDataItemContainer { private int _rowIndex; private int _dataItemIndex; private DataControlRowType _rowType; private DataControlRowState _rowState; private object _dataItem; ///Represents an individual row in the ///. /// public GridViewRow(int rowIndex, int dataItemIndex, DataControlRowType rowType, DataControlRowState rowState) { this._rowIndex = rowIndex; this._dataItemIndex = dataItemIndex; this._rowType = rowType; this._rowState = rowState; } ///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 DataItemIndex { get { return _dataItemIndex; } } ///Indicates the data set index number. This property is read-only. ////// public virtual int RowIndex { get { return _rowIndex; } } ///Indicates the index of the row in the ///. This property is /// read-only. /// public virtual DataControlRowState RowState { get { return _rowState; } set { _rowState = value; } } ///Indicates the type of the row in the ///. /// public virtual DataControlRowType RowType { get { return _rowType; } set { _rowType = value; } } ///Indicates the type of the row in the ///. /// /// protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { GridViewCommandEventArgs args = new GridViewCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } ////// /// object IDataItemContainer.DataItem { get { return DataItem; } } int IDataItemContainer.DataItemIndex { get { return DataItemIndex; } } int IDataItemContainer.DisplayIndex { get { return RowIndex; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class GridViewRow : TableRow, IDataItemContainer { private int _rowIndex; private int _dataItemIndex; private DataControlRowType _rowType; private DataControlRowState _rowState; private object _dataItem; ///Represents an individual row in the ///. /// public GridViewRow(int rowIndex, int dataItemIndex, DataControlRowType rowType, DataControlRowState rowState) { this._rowIndex = rowIndex; this._dataItemIndex = dataItemIndex; this._rowType = rowType; this._rowState = rowState; } ///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 DataItemIndex { get { return _dataItemIndex; } } ///Indicates the data set index number. This property is read-only. ////// public virtual int RowIndex { get { return _rowIndex; } } ///Indicates the index of the row in the ///. This property is /// read-only. /// public virtual DataControlRowState RowState { get { return _rowState; } set { _rowState = value; } } ///Indicates the type of the row in the ///. /// public virtual DataControlRowType RowType { get { return _rowType; } set { _rowType = value; } } ///Indicates the type of the row in the ///. /// /// protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { GridViewCommandEventArgs args = new GridViewCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } ////// /// object IDataItemContainer.DataItem { get { return DataItem; } } int IDataItemContainer.DataItemIndex { get { return DataItemIndex; } } int IDataItemContainer.DisplayIndex { get { return RowIndex; } } } } // 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
- XmlAttributeCollection.cs
- SystemIcmpV4Statistics.cs
- SqlMethodAttribute.cs
- PopOutPanel.cs
- ServiceOperationInvoker.cs
- BitmapEffectGeneralTransform.cs
- TextTrailingWordEllipsis.cs
- ReadOnlyHierarchicalDataSource.cs
- UIElement3DAutomationPeer.cs
- IDReferencePropertyAttribute.cs
- DataRowCollection.cs
- XPathNavigatorReader.cs
- SQLInt32Storage.cs
- TreePrinter.cs
- StringFormat.cs
- ParserStreamGeometryContext.cs
- TraceData.cs
- CollectionViewGroupInternal.cs
- TemplatedEditableDesignerRegion.cs
- EventProviderWriter.cs
- PropertyMapper.cs
- ServiceMetadataPublishingElement.cs
- HostingEnvironment.cs
- RequiredAttributeAttribute.cs
- FixedPageStructure.cs
- DeadCharTextComposition.cs
- ScrollChrome.cs
- _ChunkParse.cs
- DataGridViewSelectedColumnCollection.cs
- PropertyTab.cs
- SiteMapPath.cs
- MatcherBuilder.cs
- Inline.cs
- InheritanceContextChangedEventManager.cs
- AlternationConverter.cs
- SessionEndingEventArgs.cs
- TdsParameterSetter.cs
- KeyProperty.cs
- SqlTriggerAttribute.cs
- CommonGetThemePartSize.cs
- OleDbWrapper.cs
- TemplateBuilder.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- RectKeyFrameCollection.cs
- ImageField.cs
- XmlQueryTypeFactory.cs
- counter.cs
- StylusCollection.cs
- RepeaterItem.cs
- AuthenticateEventArgs.cs
- Lasso.cs
- OperationPickerDialog.designer.cs
- RegexRunnerFactory.cs
- ResetableIterator.cs
- ConfigurationManagerHelper.cs
- OdbcConnectionString.cs
- TextEffect.cs
- ContainerAction.cs
- LicenseContext.cs
- DialogWindow.cs
- PropertySourceInfo.cs
- ClipboardData.cs
- VirtualPathProvider.cs
- ExportOptions.cs
- GraphicsState.cs
- Error.cs
- CacheDependency.cs
- FixedElement.cs
- SqlInfoMessageEvent.cs
- WebPartCloseVerb.cs
- FlowDocumentPageViewerAutomationPeer.cs
- AttachedAnnotation.cs
- SmiRecordBuffer.cs
- ConfigurationLoaderException.cs
- MailWriter.cs
- CombinedGeometry.cs
- EditorAttribute.cs
- SmiConnection.cs
- DateTimeConverter.cs
- SchemaCollectionCompiler.cs
- _RequestLifetimeSetter.cs
- XPathNodeList.cs
- RequestCacheEntry.cs
- Boolean.cs
- SqlConnectionString.cs
- InstalledFontCollection.cs
- DuplicateWaitObjectException.cs
- DataServiceQueryProvider.cs
- ExpressionConverter.cs
- MultiAsyncResult.cs
- ShutDownListener.cs
- DispatchChannelSink.cs
- Registry.cs
- LinkTarget.cs
- Table.cs
- Animatable.cs
- LocatorGroup.cs
- DesignTimeXamlWriter.cs
- HtmlTableRow.cs
- SiteMapHierarchicalDataSourceView.cs