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
- DescendentsWalker.cs
- TransformerInfo.cs
- IndexedSelectQueryOperator.cs
- MessageEncodingBindingElement.cs
- ModuleBuilder.cs
- WeakEventTable.cs
- SqlInternalConnectionSmi.cs
- GACIdentityPermission.cs
- COAUTHINFO.cs
- ToolboxComponentsCreatedEventArgs.cs
- CodeDelegateInvokeExpression.cs
- BindingUtils.cs
- SafeTimerHandle.cs
- CreateUserWizardAutoFormat.cs
- SelectedDatesCollection.cs
- Roles.cs
- CompositeScriptReferenceEventArgs.cs
- Trace.cs
- XmlNodeChangedEventArgs.cs
- ContourSegment.cs
- DocumentSchemaValidator.cs
- IntegerValidator.cs
- ParserOptions.cs
- XmlDomTextWriter.cs
- XhtmlCssHandler.cs
- DataServiceEntityAttribute.cs
- VersionedStream.cs
- UnsafeNativeMethodsPenimc.cs
- GCHandleCookieTable.cs
- TraceXPathNavigator.cs
- EntityTransaction.cs
- Helper.cs
- HttpWriter.cs
- Listbox.cs
- HwndHostAutomationPeer.cs
- TogglePattern.cs
- Parser.cs
- CardSpaceShim.cs
- NameObjectCollectionBase.cs
- Helper.cs
- ReadOnlyObservableCollection.cs
- EntityDesignerUtils.cs
- WebPartConnectionsCloseVerb.cs
- WebPartTransformer.cs
- Vector3DCollection.cs
- ObjectListItemCollection.cs
- SplashScreen.cs
- AssemblyUtil.cs
- ChangePassword.cs
- EmptyImpersonationContext.cs
- TextServicesPropertyRanges.cs
- HttpRawResponse.cs
- XmlQueryType.cs
- CompatibleComparer.cs
- SchemaNotation.cs
- DataGridView.cs
- SelectionItemProviderWrapper.cs
- MsmqIntegrationProcessProtocolHandler.cs
- MenuItem.cs
- OdbcUtils.cs
- WebFaultClientMessageInspector.cs
- ExpressionBuilderContext.cs
- SystemException.cs
- ToolStripSplitButton.cs
- HighlightVisual.cs
- ExecutedRoutedEventArgs.cs
- DelimitedListTraceListener.cs
- DocumentApplicationJournalEntry.cs
- HtmlInputSubmit.cs
- RowToParametersTransformer.cs
- TimeEnumHelper.cs
- EpmSyndicationContentSerializer.cs
- SecurityTokenSerializer.cs
- Vector.cs
- CodeAttributeDeclaration.cs
- RegistryHandle.cs
- LogStream.cs
- WebColorConverter.cs
- BrowserInteropHelper.cs
- AffineTransform3D.cs
- MethodAccessException.cs
- InternalEnumValidator.cs
- MsmqInputChannelListenerBase.cs
- DBNull.cs
- NavigatingCancelEventArgs.cs
- MessageEncoderFactory.cs
- ParameterElementCollection.cs
- StreamingContext.cs
- MessageRpc.cs
- ElementMarkupObject.cs
- XmlSerializationWriter.cs
- GenericsInstances.cs
- CacheOutputQuery.cs
- DataControlCommands.cs
- BindingCollection.cs
- BreadCrumbTextConverter.cs
- TimeZone.cs
- XPathDocumentIterator.cs
- TreeBuilder.cs
- FilteredAttributeCollection.cs