Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / FormViewRow.cs / 1305376 / FormViewRow.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; ////// public class FormViewRow : TableRow { private int _itemIndex; private DataControlRowType _rowType; private DataControlRowState _rowState; ///Represents an individual row in the ///. /// public FormViewRow(int itemIndex, DataControlRowType rowType, DataControlRowState rowState) { this._itemIndex = itemIndex; this._rowType = rowType; this._rowState = rowState; RenderTemplateContainer = true; } ///Initializes a new instance of the ///class. /// public virtual int ItemIndex { get { return _itemIndex; } } ///Indicates the index of the item in the ///. This property is /// read-only. /// public virtual DataControlRowState RowState { get { return _rowState; } } ///Indicates the type of the row in the ///. /// public virtual DataControlRowType RowType { get { return _rowType; } } internal bool RenderTemplateContainer { get; set; } protected internal override void Render(HtmlTextWriter writer) { if (RenderTemplateContainer) { //render the table row normally base.Render(writer); } else { //render the contents of the cells foreach (TableCell cell in Cells) { cell.RenderContents(writer); } } } ///Indicates the type of the row in the ///. /// /// 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; ////// public class FormViewRow : TableRow { private int _itemIndex; private DataControlRowType _rowType; private DataControlRowState _rowState; ///Represents an individual row in the ///. /// public FormViewRow(int itemIndex, DataControlRowType rowType, DataControlRowState rowState) { this._itemIndex = itemIndex; this._rowType = rowType; this._rowState = rowState; RenderTemplateContainer = true; } ///Initializes a new instance of the ///class. /// public virtual int ItemIndex { get { return _itemIndex; } } ///Indicates the index of the item in the ///. This property is /// read-only. /// public virtual DataControlRowState RowState { get { return _rowState; } } ///Indicates the type of the row in the ///. /// public virtual DataControlRowType RowType { get { return _rowType; } } internal bool RenderTemplateContainer { get; set; } protected internal override void Render(HtmlTextWriter writer) { if (RenderTemplateContainer) { //render the table row normally base.Render(writer); } else { //render the contents of the cells foreach (TableCell cell in Cells) { cell.RenderContents(writer); } } } ///Indicates the type of the row in the ///. /// /// 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
- FilterEventArgs.cs
- DataColumnChangeEvent.cs
- NamedObject.cs
- BitmapMetadataBlob.cs
- UIAgentRequest.cs
- LicenseManager.cs
- InheritablePropertyChangeInfo.cs
- HexParser.cs
- TargetInvocationException.cs
- baseshape.cs
- Stack.cs
- BindingValueChangedEventArgs.cs
- ContextProperty.cs
- EmbeddedMailObject.cs
- XNodeNavigator.cs
- InteropTrackingRecord.cs
- SafeSecurityHelper.cs
- ConsumerConnectionPointCollection.cs
- DataGridViewComboBoxCell.cs
- AdjustableArrowCap.cs
- SequentialOutput.cs
- ProcessProtocolHandler.cs
- HtmlElementCollection.cs
- SpotLight.cs
- AsymmetricKeyExchangeFormatter.cs
- PasswordBoxAutomationPeer.cs
- DataControlCommands.cs
- EditorZoneBase.cs
- WebDisplayNameAttribute.cs
- ObservableCollection.cs
- StructuralObject.cs
- EFAssociationProvider.cs
- PublisherIdentityPermission.cs
- UpdatableGenericsFeature.cs
- SqlDataSource.cs
- MouseWheelEventArgs.cs
- OleCmdHelper.cs
- XmlComment.cs
- IODescriptionAttribute.cs
- Icon.cs
- XmlSchemaComplexType.cs
- ToolStripDropDownClosingEventArgs.cs
- MetadataItem_Static.cs
- HttpStaticObjectsCollectionBase.cs
- _LocalDataStore.cs
- Matrix3DConverter.cs
- SynthesizerStateChangedEventArgs.cs
- TextClipboardData.cs
- ControlType.cs
- ColumnMapTranslator.cs
- ChangePassword.cs
- OdbcUtils.cs
- DelayedRegex.cs
- FormViewPageEventArgs.cs
- FileAuthorizationModule.cs
- XmlSchemaSimpleTypeRestriction.cs
- ToolBarButton.cs
- TimelineCollection.cs
- FileSystemWatcher.cs
- QueryExpr.cs
- ParseNumbers.cs
- ProgressBar.cs
- PtsCache.cs
- ImageMapEventArgs.cs
- CompletedAsyncResult.cs
- ExtendedPropertyInfo.cs
- InputBuffer.cs
- DrawingServices.cs
- SharedPersonalizationStateInfo.cs
- ScriptResourceAttribute.cs
- DynamicControlParameter.cs
- FileSecurity.cs
- WebPartDisplayMode.cs
- JsonFaultDetail.cs
- SqlParameter.cs
- OutputCacheSection.cs
- StreamWithDictionary.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DataGridViewAccessibleObject.cs
- PermissionSet.cs
- Int32RectConverter.cs
- Tablet.cs
- WebControlAdapter.cs
- DurableMessageDispatchInspector.cs
- Dictionary.cs
- DoubleAnimation.cs
- HideDisabledControlAdapter.cs
- FormatterConverter.cs
- ContractComponent.cs
- NetCodeGroup.cs
- MarginCollapsingState.cs
- OAVariantLib.cs
- WebServiceMethodData.cs
- NetMsmqBinding.cs
- webeventbuffer.cs
- DataRow.cs
- WebPartVerbsEventArgs.cs
- EncodingStreamWrapper.cs
- OpacityConverter.cs
- InternalRelationshipCollection.cs