Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / DetailsViewRow.cs / 1 / DetailsViewRow.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 DetailsViewRow : TableRow {
private int _rowIndex;
private DataControlRowType _rowType;
private DataControlRowState _rowState;
///
/// Initializes a new instance of the class.
///
public DetailsViewRow(int rowIndex, DataControlRowType rowType, DataControlRowState rowState) {
this._rowIndex = rowIndex;
this._rowType = rowType;
this._rowState = rowState;
}
///
/// Indicates the index of the item in the . This property is
/// read-only.
///
public virtual int RowIndex {
get {
return _rowIndex;
}
}
///
/// 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) {
DetailsViewCommandEventArgs args = new DetailsViewCommandEventArgs(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 DetailsViewRow : TableRow {
private int _rowIndex;
private DataControlRowType _rowType;
private DataControlRowState _rowState;
///
/// Initializes a new instance of the class.
///
public DetailsViewRow(int rowIndex, DataControlRowType rowType, DataControlRowState rowState) {
this._rowIndex = rowIndex;
this._rowType = rowType;
this._rowState = rowState;
}
///
/// Indicates the index of the item in the . This property is
/// read-only.
///
public virtual int RowIndex {
get {
return _rowIndex;
}
}
///
/// 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) {
DetailsViewCommandEventArgs args = new DetailsViewCommandEventArgs(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
- PagePropertiesChangingEventArgs.cs
- SqlRecordBuffer.cs
- FixedSOMLineCollection.cs
- cookiecollection.cs
- EntityDataSourceView.cs
- Encoding.cs
- SystemIcmpV6Statistics.cs
- ImageCodecInfoPrivate.cs
- Parameter.cs
- TypeSystem.cs
- TreeNode.cs
- TextEditor.cs
- _BasicClient.cs
- WorkflowServiceHostFactory.cs
- SqlBulkCopy.cs
- BamlWriter.cs
- SHA1CryptoServiceProvider.cs
- UnsafeNetInfoNativeMethods.cs
- PropertyValueUIItem.cs
- OleServicesContext.cs
- EventSourceCreationData.cs
- FontStretches.cs
- BigIntegerStorage.cs
- EntityCommandDefinition.cs
- PageBreakRecord.cs
- SqlMethodAttribute.cs
- RegexFCD.cs
- RuntimeEnvironment.cs
- SessionPageStateSection.cs
- CommandValueSerializer.cs
- ScriptReference.cs
- FileSystemInfo.cs
- QueryParameter.cs
- ToolStripDropDownItem.cs
- infer.cs
- BooleanToVisibilityConverter.cs
- WindowsToolbar.cs
- ByteStreamMessageUtility.cs
- BinaryReader.cs
- MultiTrigger.cs
- Bits.cs
- ObjectPropertyMapping.cs
- OciEnlistContext.cs
- Mapping.cs
- Peer.cs
- Axis.cs
- DataSourceXmlElementAttribute.cs
- PingOptions.cs
- ArrayTypeMismatchException.cs
- FileVersionInfo.cs
- keycontainerpermission.cs
- HostAdapter.cs
- ValueProviderWrapper.cs
- DirectoryLocalQuery.cs
- DataSourceCacheDurationConverter.cs
- ResXResourceSet.cs
- ReachPageContentCollectionSerializerAsync.cs
- EdmFunctionAttribute.cs
- GridSplitter.cs
- FormatException.cs
- VerificationException.cs
- BevelBitmapEffect.cs
- DataGridCellsPanel.cs
- ConnectAlgorithms.cs
- OleDbStruct.cs
- CryptoConfig.cs
- CalculatedColumn.cs
- StateManagedCollection.cs
- ObsoleteAttribute.cs
- TypeInitializationException.cs
- BinaryConverter.cs
- XPathDocumentBuilder.cs
- ValidationErrorCollection.cs
- SizeAnimationBase.cs
- LocalBuilder.cs
- PersonalizationStateQuery.cs
- SHA256.cs
- InstanceLockException.cs
- ClientRoleProvider.cs
- ToolStripSplitButton.cs
- QuaternionAnimation.cs
- XmlSerializerVersionAttribute.cs
- DecryptRequest.cs
- BeginEvent.cs
- ValidatingPropertiesEventArgs.cs
- TimeSpanConverter.cs
- RawStylusActions.cs
- SqlParameter.cs
- BitmapCodecInfoInternal.cs
- XmlBaseWriter.cs
- MemberInfoSerializationHolder.cs
- OdbcEnvironment.cs
- UIElement3D.cs
- DesignerTransaction.cs
- DataSvcMapFileSerializer.cs
- FontUnit.cs
- objectresult_tresulttype.cs
- CodeTypeParameter.cs
- RootProjectionNode.cs
- ResourceProviderFactory.cs