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
- CodeAttributeArgumentCollection.cs
- XmlSchemaSet.cs
- Variable.cs
- SelectionListDesigner.cs
- FlowDocumentPaginator.cs
- ScrollViewerAutomationPeer.cs
- EnterpriseServicesHelper.cs
- EmbossBitmapEffect.cs
- PeerResolverMode.cs
- AuthorizationRuleCollection.cs
- ToolStripRenderer.cs
- CriticalExceptions.cs
- OutOfMemoryException.cs
- UnicodeEncoding.cs
- WorkflowIdleBehavior.cs
- AttributeUsageAttribute.cs
- AdapterSwitches.cs
- DataGridTemplateColumn.cs
- TextReader.cs
- CallTemplateAction.cs
- ToolStripContentPanel.cs
- HostingPreferredMapPath.cs
- ProxyGenerator.cs
- Simplifier.cs
- XmlDocumentFragment.cs
- ResetableIterator.cs
- NonBatchDirectoryCompiler.cs
- ScriptManager.cs
- TabletDeviceInfo.cs
- BuilderPropertyEntry.cs
- nulltextnavigator.cs
- MessagePropertyVariants.cs
- ThreadPool.cs
- RequestQueryProcessor.cs
- BaseDataBoundControl.cs
- TimerElapsedEvenArgs.cs
- RequiredAttributeAttribute.cs
- CodeSubDirectory.cs
- DockEditor.cs
- PeerName.cs
- Timer.cs
- ValidationPropertyAttribute.cs
- TemplatedMailWebEventProvider.cs
- FileVersionInfo.cs
- MemoryMappedView.cs
- ImageDrawing.cs
- XmlNodeChangedEventArgs.cs
- PerfCounterSection.cs
- ReadOnlyTernaryTree.cs
- UIElementParagraph.cs
- ApplicationSecurityManager.cs
- ByeMessageCD1.cs
- DbSetClause.cs
- SafeLibraryHandle.cs
- SurrogateDataContract.cs
- Ipv6Element.cs
- Int32Rect.cs
- Expressions.cs
- DateTime.cs
- QueryRewriter.cs
- CaseInsensitiveHashCodeProvider.cs
- TypeGeneratedEventArgs.cs
- ToolStripDropTargetManager.cs
- ErrorActivity.cs
- Win32.cs
- FrameworkElementFactory.cs
- TreeNode.cs
- SmiMetaData.cs
- StateMachineWorkflow.cs
- SqlDataRecord.cs
- ProcessHostServerConfig.cs
- TryExpression.cs
- CodeMemberField.cs
- FormViewPageEventArgs.cs
- ColorAnimation.cs
- CodeArrayIndexerExpression.cs
- DependencyProperty.cs
- DrawingGroup.cs
- _FixedSizeReader.cs
- SecurityRuntime.cs
- NavigationWindowAutomationPeer.cs
- WsatEtwTraceListener.cs
- ServiceInstanceProvider.cs
- ImageIndexConverter.cs
- X509ChainPolicy.cs
- EmbeddedMailObject.cs
- HttpHandlerAction.cs
- FloaterParaClient.cs
- ExceptionNotification.cs
- counter.cs
- ClipboardProcessor.cs
- CrossSiteScriptingValidation.cs
- AutomationPattern.cs
- DataServiceQuery.cs
- ConstraintCollection.cs
- ThemeableAttribute.cs
- URI.cs
- _ScatterGatherBuffers.cs
- ByteStreamGeometryContext.cs
- BatchServiceHost.cs