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
- SqlDeflator.cs
- TabPanel.cs
- TabControlEvent.cs
- WebPartManager.cs
- COM2AboutBoxPropertyDescriptor.cs
- ProtocolsConfigurationEntry.cs
- ComponentConverter.cs
- ObjectListCommand.cs
- DbInsertCommandTree.cs
- SafeCoTaskMem.cs
- NullNotAllowedCollection.cs
- SharedHttpTransportManager.cs
- UriTemplateHelpers.cs
- SqlXml.cs
- DependencyPropertyKey.cs
- NavigationProperty.cs
- XmlNodeChangedEventManager.cs
- DesignTimeParseData.cs
- CodeVariableReferenceExpression.cs
- ResourceProperty.cs
- CodeExpressionRuleDeclaration.cs
- selecteditemcollection.cs
- KerberosSecurityTokenParameters.cs
- _ListenerAsyncResult.cs
- Rect.cs
- SafeNativeMethods.cs
- BinaryHeap.cs
- SkinIDTypeConverter.cs
- WhitespaceRuleLookup.cs
- LinqToSqlWrapper.cs
- TextTreeObjectNode.cs
- Tile.cs
- PatternMatcher.cs
- MethodAccessException.cs
- TreeView.cs
- ExitEventArgs.cs
- SpecularMaterial.cs
- DummyDataSource.cs
- SoapMessage.cs
- HtmlInputFile.cs
- WmlLabelAdapter.cs
- GridItem.cs
- CodeStatement.cs
- UnitySerializationHolder.cs
- XmlSchemaAttributeGroup.cs
- SplineKeyFrames.cs
- XPathAncestorQuery.cs
- UInt64Converter.cs
- XmlSchemaAttributeGroupRef.cs
- BookmarkCallbackWrapper.cs
- ClientFormsIdentity.cs
- WebScriptServiceHostFactory.cs
- SecurityProtocol.cs
- Utils.cs
- RuleProcessor.cs
- AuthenticateEventArgs.cs
- WindowsListViewGroup.cs
- XmlSerializableWriter.cs
- FixUpCollection.cs
- connectionpool.cs
- ValidationPropertyAttribute.cs
- _ConnectOverlappedAsyncResult.cs
- ProgressBarRenderer.cs
- TriState.cs
- DPTypeDescriptorContext.cs
- DataGridClipboardHelper.cs
- TimeSpanOrInfiniteValidator.cs
- PermissionAttributes.cs
- CollectionsUtil.cs
- ELinqQueryState.cs
- SQLMembershipProvider.cs
- Parallel.cs
- XsltOutput.cs
- BitmapCodecInfoInternal.cs
- ReadOnlyHierarchicalDataSource.cs
- SeverityFilter.cs
- ToolStripDesigner.cs
- DataRowCollection.cs
- HandlerFactoryCache.cs
- CommandEventArgs.cs
- BamlLocalizableResource.cs
- XmlDocumentFragment.cs
- InputGestureCollection.cs
- SQlBooleanStorage.cs
- InvalidFilterCriteriaException.cs
- ObjectConverter.cs
- XmlSchemaImport.cs
- PanelDesigner.cs
- ScaleTransform.cs
- StreamUpdate.cs
- TypeElement.cs
- TextServicesContext.cs
- LinqDataSourceStatusEventArgs.cs
- MethodToken.cs
- Variant.cs
- SeekStoryboard.cs
- TextHidden.cs
- TreeNodeEventArgs.cs
- ObjectDataSourceEventArgs.cs
- XmlQueryType.cs