Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / LayoutTable.cs / 1 / 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]; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DependencyObject.cs
- Exceptions.cs
- WindowsListViewGroup.cs
- TypeConverters.cs
- UnknownWrapper.cs
- RegexParser.cs
- HtmlCommandAdapter.cs
- EventLogger.cs
- DataSourceXmlClassAttribute.cs
- ObjectListFieldsPage.cs
- TemplateField.cs
- OdbcConnectionHandle.cs
- HttpHandlersSection.cs
- PlanCompiler.cs
- SizeAnimationClockResource.cs
- XPathItem.cs
- Descriptor.cs
- ExpressionParser.cs
- UdpAnnouncementEndpoint.cs
- WebPartConnectionsEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- WinInetCache.cs
- TextShapeableCharacters.cs
- control.ime.cs
- Transform.cs
- SecurityPermission.cs
- VisualTarget.cs
- TemplateBaseAction.cs
- CompositeCollection.cs
- AuthenticationModuleElement.cs
- TimeSpanSecondsConverter.cs
- PrimitiveDataContract.cs
- _CookieModule.cs
- DataKeyCollection.cs
- SessionPageStateSection.cs
- _Events.cs
- AlternateView.cs
- PropertyEmitter.cs
- Light.cs
- SslStream.cs
- IndicCharClassifier.cs
- ItemMap.cs
- QueryOperationResponseOfT.cs
- CodeCatchClauseCollection.cs
- FormCollection.cs
- Attributes.cs
- CustomErrorsSectionWrapper.cs
- SmiEventSink.cs
- JumpTask.cs
- FtpRequestCacheValidator.cs
- Environment.cs
- BooleanConverter.cs
- WasAdminWrapper.cs
- InstanceOwner.cs
- DBPropSet.cs
- AuthenticatingEventArgs.cs
- HtmlInputPassword.cs
- LinkButton.cs
- PermissionSetEnumerator.cs
- ProviderConnectionPointCollection.cs
- MulticastDelegate.cs
- SemaphoreFullException.cs
- NamespaceList.cs
- WebPartConnectionsEventArgs.cs
- XmlByteStreamReader.cs
- SessionStateSection.cs
- SessionState.cs
- SymmetricKeyWrap.cs
- EntityDataSourceChangedEventArgs.cs
- XmlAttributes.cs
- HttpTransportSecurityElement.cs
- SubMenuStyleCollectionEditor.cs
- ServiceHttpModule.cs
- BufferedGraphicsManager.cs
- DataTemplateSelector.cs
- MailSettingsSection.cs
- EventManager.cs
- Monitor.cs
- DataGridViewRowHeaderCell.cs
- SqlVersion.cs
- TableColumnCollectionInternal.cs
- SQLBinaryStorage.cs
- GACIdentityPermission.cs
- ExpressionParser.cs
- FocusManager.cs
- LabelEditEvent.cs
- WebRequest.cs
- OptimizedTemplateContentHelper.cs
- ExpressionsCollectionEditor.cs
- MessagePropertyFilter.cs
- WizardStepBase.cs
- Profiler.cs
- Int16AnimationUsingKeyFrames.cs
- TransformerConfigurationWizardBase.cs
- SecuritySessionFilter.cs
- WindowsEditBox.cs
- WorkerRequest.cs
- DriveNotFoundException.cs
- precedingsibling.cs
- RegexCapture.cs