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
- ValueConversionAttribute.cs
- NetCodeGroup.cs
- ProgressChangedEventArgs.cs
- Int16Converter.cs
- TouchesOverProperty.cs
- OracleBoolean.cs
- RemotingConfiguration.cs
- DataConnectionHelper.cs
- TraceListener.cs
- FixedTextBuilder.cs
- Rect3D.cs
- SymmetricAlgorithm.cs
- ArraySegment.cs
- DataTable.cs
- InputReport.cs
- WrappedIUnknown.cs
- EntityDataSourceContainerNameConverter.cs
- FunctionMappingTranslator.cs
- FileStream.cs
- dataobject.cs
- TextTabProperties.cs
- InvokeWebService.cs
- MemoryMappedFileSecurity.cs
- Opcode.cs
- Int32RectConverter.cs
- DialogResultConverter.cs
- Solver.cs
- ContextMenu.cs
- BinaryReader.cs
- MimeBasePart.cs
- RowsCopiedEventArgs.cs
- FlowPanelDesigner.cs
- SingleConverter.cs
- TreeNodeSelectionProcessor.cs
- InputElement.cs
- CodePageUtils.cs
- EncryptedPackage.cs
- GeometryModel3D.cs
- WinFormsSecurity.cs
- ThreadExceptionEvent.cs
- CapabilitiesRule.cs
- DecimalConstantAttribute.cs
- ServiceChannelFactory.cs
- DataServices.cs
- TableParaClient.cs
- UserControlDesigner.cs
- HttpApplicationStateWrapper.cs
- ToolboxItemWrapper.cs
- EndpointIdentityExtension.cs
- DrawingBrush.cs
- IteratorAsyncResult.cs
- _AuthenticationState.cs
- WeakKeyDictionary.cs
- XmlAttributeHolder.cs
- IndexedString.cs
- Pipe.cs
- ActionFrame.cs
- MsmqTransportReceiveParameters.cs
- TextTrailingWordEllipsis.cs
- SplitterEvent.cs
- XmlQualifiedName.cs
- DataGridViewUtilities.cs
- DataTableMappingCollection.cs
- BigInt.cs
- DataSpaceManager.cs
- CrossContextChannel.cs
- RenderOptions.cs
- CoTaskMemHandle.cs
- DataGridViewCheckBoxColumn.cs
- UnknownBitmapDecoder.cs
- GACMembershipCondition.cs
- CheckBoxField.cs
- PropertyValueUIItem.cs
- ProtocolsSection.cs
- Crc32Helper.cs
- Context.cs
- DiscoveryMessageSequenceGenerator.cs
- LineBreak.cs
- CodeSubDirectory.cs
- SelectedDatesCollection.cs
- DataColumnMappingCollection.cs
- AssemblyHash.cs
- AgileSafeNativeMemoryHandle.cs
- CodeConditionStatement.cs
- FrameworkElementFactory.cs
- DataGridViewAutoSizeModeEventArgs.cs
- Transactions.cs
- SessionSwitchEventArgs.cs
- DllNotFoundException.cs
- StackBuilderSink.cs
- RoleService.cs
- FacetDescription.cs
- DataRecordInfo.cs
- EntityType.cs
- util.cs
- BindingMemberInfo.cs
- ComponentDispatcher.cs
- DrawingAttributes.cs
- TCPListener.cs
- ErrorFormatterPage.cs