Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartsSection.cs
- SingleObjectCollection.cs
- RecordManager.cs
- XmlComplianceUtil.cs
- LicenseContext.cs
- SoapEnumAttribute.cs
- TreeWalker.cs
- TCPListener.cs
- ExtractorMetadata.cs
- ResXDataNode.cs
- TypeSemantics.cs
- DataGridViewRowHeaderCell.cs
- CellRelation.cs
- DataBoundControlAdapter.cs
- UInt64.cs
- SystemUdpStatistics.cs
- Delay.cs
- Message.cs
- ControlBuilderAttribute.cs
- XomlCompilerHelpers.cs
- XmlDictionary.cs
- BaseTypeViewSchema.cs
- XsltSettings.cs
- SkinBuilder.cs
- RequestCacheEntry.cs
- InheritablePropertyChangeInfo.cs
- MonthCalendarDesigner.cs
- ResourcePermissionBaseEntry.cs
- AdRotator.cs
- HtmlInputImage.cs
- ObjectDataSourceView.cs
- ToggleProviderWrapper.cs
- PanelStyle.cs
- DataGridRowsPresenter.cs
- TreeWalker.cs
- MimeObjectFactory.cs
- ListenerUnsafeNativeMethods.cs
- FrameworkObject.cs
- SecurityTokenParametersEnumerable.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- XmlElementAttributes.cs
- ConfigurationValues.cs
- KnownTypesProvider.cs
- SqlCacheDependencyDatabaseCollection.cs
- XPathDocumentNavigator.cs
- DescendantOverDescendantQuery.cs
- HtmlInputSubmit.cs
- UnitySerializationHolder.cs
- DocumentViewer.cs
- ExpressionVisitor.cs
- XPathPatternBuilder.cs
- SystemIcons.cs
- ContentTextAutomationPeer.cs
- MsmqTransportBindingElement.cs
- HostingPreferredMapPath.cs
- CodeIndexerExpression.cs
- CacheSection.cs
- CodeSnippetCompileUnit.cs
- CfgParser.cs
- Win32.cs
- RectValueSerializer.cs
- SqlUnionizer.cs
- FixedSOMTextRun.cs
- Rfc2898DeriveBytes.cs
- RegexCapture.cs
- ManipulationDevice.cs
- SystemWebExtensionsSectionGroup.cs
- EntitySet.cs
- DbConnectionFactory.cs
- ValidatorUtils.cs
- StronglyTypedResourceBuilder.cs
- Invariant.cs
- sqlinternaltransaction.cs
- OrderingQueryOperator.cs
- QilExpression.cs
- ParameterSubsegment.cs
- StandardCommands.cs
- HtmlTitle.cs
- ChtmlMobileTextWriter.cs
- Query.cs
- DaylightTime.cs
- IconBitmapDecoder.cs
- EntityContainerAssociationSet.cs
- DetectRunnableInstancesTask.cs
- BamlBinaryReader.cs
- Exception.cs
- PlanCompiler.cs
- CustomExpressionEventArgs.cs
- ThicknessAnimationBase.cs
- __Filters.cs
- XmlSignificantWhitespace.cs
- TreeViewCancelEvent.cs
- NamespaceList.cs
- BitmapDecoder.cs
- MailSettingsSection.cs
- Subset.cs
- CodeBinaryOperatorExpression.cs
- CheckoutException.cs
- FormsAuthenticationEventArgs.cs
- WinEventTracker.cs