Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebControls / FormViewRow.cs / 1 / FormViewRow.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Represents an individual row in the .
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class FormViewRow : TableRow {
private int _itemIndex;
private DataControlRowType _rowType;
private DataControlRowState _rowState;
///
/// Initializes a new instance of the class.
///
public FormViewRow(int itemIndex, DataControlRowType rowType, DataControlRowState rowState) {
this._itemIndex = itemIndex;
this._rowType = rowType;
this._rowState = rowState;
}
///
/// Indicates the index of the item in the . This property is
/// read-only.
///
public virtual int ItemIndex {
get {
return _itemIndex;
}
}
///
/// Indicates the type of the row in the .
///
public virtual DataControlRowState RowState {
get {
return _rowState;
}
}
///
/// Indicates the type of the row in the .
///
public virtual DataControlRowType RowType {
get {
return _rowType;
}
}
///
///
///
protected override bool OnBubbleEvent(object source, EventArgs e) {
if (e is CommandEventArgs) {
FormViewCommandEventArgs args = new FormViewCommandEventArgs(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.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Represents an individual row in the .
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class FormViewRow : TableRow {
private int _itemIndex;
private DataControlRowType _rowType;
private DataControlRowState _rowState;
///
/// Initializes a new instance of the class.
///
public FormViewRow(int itemIndex, DataControlRowType rowType, DataControlRowState rowState) {
this._itemIndex = itemIndex;
this._rowType = rowType;
this._rowState = rowState;
}
///
/// Indicates the index of the item in the . This property is
/// read-only.
///
public virtual int ItemIndex {
get {
return _itemIndex;
}
}
///
/// Indicates the type of the row in the .
///
public virtual DataControlRowState RowState {
get {
return _rowState;
}
}
///
/// Indicates the type of the row in the .
///
public virtual DataControlRowType RowType {
get {
return _rowType;
}
}
///
///
///
protected override bool OnBubbleEvent(object source, EventArgs e) {
if (e is CommandEventArgs) {
FormViewCommandEventArgs args = new FormViewCommandEventArgs(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
- DataServiceException.cs
- DocumentPageHost.cs
- PageThemeBuildProvider.cs
- SQLChars.cs
- ConfigPathUtility.cs
- PieceDirectory.cs
- TypeLibConverter.cs
- Translator.cs
- NameValueSectionHandler.cs
- DescendantQuery.cs
- LabelLiteral.cs
- CommandBinding.cs
- MsmqActivation.cs
- TransformPatternIdentifiers.cs
- ChangeBlockUndoRecord.cs
- LateBoundChannelParameterCollection.cs
- DbConnectionHelper.cs
- DataGridTable.cs
- _NTAuthentication.cs
- OlePropertyStructs.cs
- LineServices.cs
- XXXOnTypeBuilderInstantiation.cs
- FieldNameLookup.cs
- MessageDirection.cs
- CheckableControlBaseAdapter.cs
- COM2TypeInfoProcessor.cs
- SqlBinder.cs
- RenamedEventArgs.cs
- XsdDateTime.cs
- SqlStream.cs
- Axis.cs
- AsyncOperationLifetimeManager.cs
- WebPartTracker.cs
- OleDbWrapper.cs
- Cursors.cs
- BrushMappingModeValidation.cs
- MailMessageEventArgs.cs
- QilIterator.cs
- DataGridViewTextBoxColumn.cs
- DataServiceHostWrapper.cs
- ValidatorUtils.cs
- QuestionEventArgs.cs
- SqlStatistics.cs
- DurableInstanceManager.cs
- FloaterParagraph.cs
- Block.cs
- NotConverter.cs
- LostFocusEventManager.cs
- TriggerActionCollection.cs
- __Error.cs
- MatrixIndependentAnimationStorage.cs
- WindowsFont.cs
- ScrollChangedEventArgs.cs
- DBCSCodePageEncoding.cs
- WebDisplayNameAttribute.cs
- ServicePoint.cs
- StringExpressionSet.cs
- DataGridViewColumnEventArgs.cs
- ParentUndoUnit.cs
- FontSizeConverter.cs
- PointCollectionConverter.cs
- WindowsGraphicsWrapper.cs
- AuthorizationSection.cs
- LicFileLicenseProvider.cs
- DropDownList.cs
- GlobalDataBindingHandler.cs
- ExtensionDataReader.cs
- SimpleMailWebEventProvider.cs
- GridViewUpdateEventArgs.cs
- BaseDataList.cs
- XmlSerializerNamespaces.cs
- PointCollection.cs
- WebPartZone.cs
- SimpleMailWebEventProvider.cs
- HttpRuntime.cs
- SecurityUtils.cs
- UpDownBase.cs
- RemotingConfiguration.cs
- StylusCollection.cs
- coordinatorscratchpad.cs
- FreezableOperations.cs
- RenderDataDrawingContext.cs
- TraceContextEventArgs.cs
- EncoderExceptionFallback.cs
- WmpBitmapEncoder.cs
- WindowsEditBox.cs
- ImageListStreamer.cs
- InnerItemCollectionView.cs
- _Semaphore.cs
- BuildProviderUtils.cs
- CategoryGridEntry.cs
- HttpHandlersInstallComponent.cs
- CryptoStream.cs
- BrowsableAttribute.cs
- TypeExtensionConverter.cs
- ModelVisual3D.cs
- AnnotationComponentManager.cs
- FilteredDataSetHelper.cs
- Identifier.cs
- OdbcConnectionPoolProviderInfo.cs