Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / LayoutTable.cs / 2 / LayoutTable.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Security.Permissions; using System.Web; ////// Table used for laying out controls in a Render method. Doesn't parent added controls, so /// it is safe to add child controls to this table. Sets page of added controls if not already set. /// [SupportsEventValidation] internal sealed class LayoutTable : Table { public LayoutTable(int rows, int columns, Page page) { if (rows <= 0) { throw new ArgumentOutOfRangeException("rows"); } if (columns <= 0) { throw new ArgumentOutOfRangeException("columns"); } // page may be null in the designer if (page != null) { this.Page = page; } for (int r = 0; r < rows; r++) { TableRow row = new TableRow(); Rows.Add(row); for (int c = 0; c < columns; c++) { TableCell cell = new LayoutTableCell(); row.Cells.Add(cell); } } } public TableCell this[int row, int column] { get { return (TableCell)Rows[row].Cells[column]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Security.Permissions; using System.Web; ////// Table used for laying out controls in a Render method. Doesn't parent added controls, so /// it is safe to add child controls to this table. Sets page of added controls if not already set. /// [SupportsEventValidation] internal sealed class LayoutTable : Table { public LayoutTable(int rows, int columns, Page page) { if (rows <= 0) { throw new ArgumentOutOfRangeException("rows"); } if (columns <= 0) { throw new ArgumentOutOfRangeException("columns"); } // page may be null in the designer if (page != null) { this.Page = page; } for (int r = 0; r < rows; r++) { TableRow row = new TableRow(); Rows.Add(row); for (int c = 0; c < columns; c++) { TableCell cell = new LayoutTableCell(); row.Cells.Add(cell); } } } public TableCell this[int row, int column] { get { return (TableCell)Rows[row].Cells[column]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DefaultTraceListener.cs
- PseudoWebRequest.cs
- PeerObject.cs
- Normalization.cs
- Point3DCollection.cs
- PrincipalPermission.cs
- ServiceBehaviorElementCollection.cs
- SystemPens.cs
- ProfilePropertySettings.cs
- XmlAutoDetectWriter.cs
- GetPageNumberCompletedEventArgs.cs
- Vector3DAnimation.cs
- DataGridViewDataConnection.cs
- SrgsRule.cs
- TimerTable.cs
- TextServicesProperty.cs
- NotImplementedException.cs
- GridViewRowPresenterBase.cs
- CollectionChangedEventManager.cs
- precedingsibling.cs
- XmlReflectionMember.cs
- SecurityRequiresReviewAttribute.cs
- UIAgentMonitorHandle.cs
- HtmlTable.cs
- AsymmetricKeyExchangeDeformatter.cs
- GenerateScriptTypeAttribute.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- PublisherMembershipCondition.cs
- SafeRightsManagementPubHandle.cs
- EntityType.cs
- EntityViewContainer.cs
- SecurityManager.cs
- XmlLanguageConverter.cs
- UserInitiatedNavigationPermission.cs
- WindowClosedEventArgs.cs
- PrinterResolution.cs
- TableParagraph.cs
- HyperLinkDataBindingHandler.cs
- _emptywebproxy.cs
- RetrieveVirtualItemEventArgs.cs
- CodeComment.cs
- WinInet.cs
- Pair.cs
- QueryableDataSource.cs
- Package.cs
- OutputScopeManager.cs
- WindowsFormsSectionHandler.cs
- StateMachineExecutionState.cs
- FormViewUpdatedEventArgs.cs
- BindingValueChangedEventArgs.cs
- SchemaInfo.cs
- MULTI_QI.cs
- TextWriter.cs
- ToolStripCustomTypeDescriptor.cs
- AdapterUtil.cs
- ScrollEventArgs.cs
- WebDisplayNameAttribute.cs
- ParagraphResult.cs
- UnsafeNativeMethods.cs
- HwndSourceParameters.cs
- _FtpDataStream.cs
- StringStorage.cs
- DbLambda.cs
- DesignerAdapterUtil.cs
- ObjectNotFoundException.cs
- Vector3DIndependentAnimationStorage.cs
- UTF8Encoding.cs
- SafeFreeMibTable.cs
- _HeaderInfo.cs
- Rule.cs
- UpDownEvent.cs
- Repeater.cs
- TextFragmentEngine.cs
- ScopeElement.cs
- DataGridLengthConverter.cs
- ScrollEvent.cs
- DataComponentGenerator.cs
- WindowsAuthenticationModule.cs
- RepeaterItemCollection.cs
- WorkflowRuntimeElement.cs
- ConnectionStringSettings.cs
- Convert.cs
- TextTreeFixupNode.cs
- ResourcesChangeInfo.cs
- SerializationEventsCache.cs
- SafeRightsManagementQueryHandle.cs
- PolicyUtility.cs
- WebPermission.cs
- CachedCompositeFamily.cs
- RayHitTestParameters.cs
- MdbDataFileEditor.cs
- MultiPageTextView.cs
- TdsParserHelperClasses.cs
- AsyncPostBackTrigger.cs
- SuppressMessageAttribute.cs
- PointKeyFrameCollection.cs
- WebPartConnectionsConfigureVerb.cs
- Sql8ConformanceChecker.cs
- WebWorkflowRole.cs
- PassportPrincipal.cs