Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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.
//------------------------------------------------------------------------------
//
// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TemplateControlCodeDomTreeGenerator.cs
- ViewKeyConstraint.cs
- TextTreeRootNode.cs
- ListControlActionList.cs
- XmlSchemaComplexContentExtension.cs
- Vector3DCollection.cs
- CombinedHttpChannel.cs
- ObjectSecurity.cs
- OleAutBinder.cs
- XmlArrayItemAttribute.cs
- OleDbConnectionFactory.cs
- Range.cs
- EntityWithKeyStrategy.cs
- RequestDescription.cs
- DataGridViewCellLinkedList.cs
- CollectionAdapters.cs
- ListViewGroup.cs
- DataRowView.cs
- PageCodeDomTreeGenerator.cs
- QueryTaskGroupState.cs
- Clock.cs
- SourceFilter.cs
- IImplicitResourceProvider.cs
- TextRunCache.cs
- CursorConverter.cs
- TableDetailsRow.cs
- WebHttpSecurity.cs
- WindowsPen.cs
- AsymmetricSecurityProtocol.cs
- CompositeDataBoundControl.cs
- HtmlButton.cs
- SoapSchemaExporter.cs
- FileAccessException.cs
- StateDesigner.LayoutSelectionGlyph.cs
- ComProxy.cs
- Switch.cs
- CalendarDayButton.cs
- URLMembershipCondition.cs
- SizeKeyFrameCollection.cs
- CheckPair.cs
- NullableBoolConverter.cs
- DataObjectMethodAttribute.cs
- PrimitiveXmlSerializers.cs
- FilteredSchemaElementLookUpTable.cs
- ExpressionBuilderCollection.cs
- EdmFunction.cs
- UriTemplateVariablePathSegment.cs
- XmlBinaryWriterSession.cs
- DataGridViewControlCollection.cs
- WebPartCatalogCloseVerb.cs
- LinkedResource.cs
- ScalarConstant.cs
- SamlAdvice.cs
- Viewport2DVisual3D.cs
- CqlLexer.cs
- URI.cs
- XmlAttributeCollection.cs
- QilInvokeEarlyBound.cs
- TimelineClockCollection.cs
- PropertyGridCommands.cs
- CharacterBufferReference.cs
- MeasurementDCInfo.cs
- ModelFactory.cs
- SynchronizationContext.cs
- PagerSettings.cs
- EncodingNLS.cs
- LicenseException.cs
- ReadonlyMessageFilter.cs
- NGCSerializationManager.cs
- EntitySetBaseCollection.cs
- CellTreeNode.cs
- ContainerParagraph.cs
- ServiceDescriptionReflector.cs
- Invariant.cs
- LinkDescriptor.cs
- GlyphElement.cs
- BoundingRectTracker.cs
- InvalidAsynchronousStateException.cs
- ProbeDuplex11AsyncResult.cs
- CompositionAdorner.cs
- RelationshipManager.cs
- OleDbParameter.cs
- Imaging.cs
- WindowsSpinner.cs
- ConstraintEnumerator.cs
- PrimitiveSchema.cs
- WinCategoryAttribute.cs
- PageClientProxyGenerator.cs
- DeclarativeCatalogPartDesigner.cs
- DbRetry.cs
- XamlSerializationHelper.cs
- EditorZoneBase.cs
- SqlDataReader.cs
- ConstraintStruct.cs
- DocumentViewerConstants.cs
- Point3DValueSerializer.cs
- BindingValueChangedEventArgs.cs
- PageStatePersister.cs
- HttpWebRequest.cs
- SystemIPv4InterfaceProperties.cs