|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
TableRow, classe
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.TableRow
System.Web.UI.WebControls.DataGridItem
System.Web.UI.WebControls.DetailsViewRow
System.Web.UI.WebControls.FormViewRow
System.Web.UI.WebControls.GridViewRow
System.Web.UI.WebControls.TableFooterRow
System.Web.UI.WebControls.TableHeaderRow
Espace de noms : System.Web.UI.WebControls
Assembly : System.Web (dans System.Web.dll)
Le type TableRow expose les membres suivants.
| Nom | Description | |
|---|---|---|
![]() | AccessKey | |
![]() | Adapter | |
![]() | AppRelativeTemplateSourceDirectory | |
![]() | Attributes | |
![]() | BackColor | |
![]() | BindingContainer | Infrastructure. |
![]() | BorderColor | |
![]() | BorderStyle | |
![]() | BorderWidth | |
![]() | Cells | |
![]() | ChildControlsCreated | |
![]() | ClientID | |
![]() | ClientIDMode | |
![]() | ClientIDSeparator | |
![]() | Context | |
![]() | Controls | |
![]() | ControlStyle | |
![]() | ControlStyleCreated | |
![]() | CssClass | |
![]() | DataItemContainer | |
![]() | DataKeysContainer | |
![]() | DesignMode | |
![]() | Enabled | |
![]() | EnableTheming | |
![]() | EnableViewState | |
![]() | Events | |
![]() | Font | |
![]() | ForeColor | |
![]() | HasAttributes | |
![]() | HasChildViewState | |
![]() | Height | |
![]() | HorizontalAlign | |
![]() | ID | |
![]() | IdSeparator | Infrastructure. |
![]() | IsChildControlStateCleared | |
![]() | IsEnabled | |
![]() | IsTrackingViewState | |
![]() | IsViewStateEnabled | |
![]() | LoadViewStateByID | |
![]() | NamingContainer | |
![]() | Page | |
![]() | Parent | |
![]() | RenderingCompatibility | |
![]() | Site | |
![]() | SkinID | |
![]() | Style | |
![]() | SupportsDisabledAttribute | |
![]() | TabIndex | |
![]() | TableSection | |
![]() | TagKey | |
![]() | TagName | |
![]() | TemplateControl | |
![]() | TemplateSourceDirectory | |
![]() | ToolTip | |
![]() | UniqueID | |
![]() | ValidateRequestMode | |
![]() | VerticalAlign | |
![]() | ViewState | |
![]() | ViewStateIgnoresCase | |
![]() | ViewStateMode | |
![]() | Visible | |
![]() | Width |
| Nom | Description | |
|---|---|---|
![]() | AddAttributesToRender | |
![]() | AddedControl | |
![]() | AddParsedSubObject | |
![]() | ApplyStyle | |
![]() | ApplyStyleSheetSkin | |
![]() | BeginRenderTracing | |
![]() | BuildProfileTree | Infrastructure. |
![]() | ClearCachedClientID | Infrastructure. |
![]() | ClearChildControlState | |
![]() | ClearChildState | |
![]() | ClearChildViewState | |
![]() | ClearEffectiveClientIDMode | Infrastructure. |
![]() | CopyBaseAttributes | |
![]() | CreateChildControls | |
![]() | CreateControlCollection | |
![]() | CreateControlStyle | |
![]() | DataBind() | |
![]() | DataBind(Boolean) | |
![]() | DataBindChildren | |
![]() | Dispose | |
![]() | EndRenderTracing | |
![]() | EnsureChildControls | |
![]() | EnsureID | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | FindControl(String) | |
![]() | FindControl(String, Int32) | Infrastructure. |
![]() | Focus | |
![]() | GetDesignModeState | Infrastructure. |
![]() | GetHashCode | |
![]() | GetRouteUrl(Object) | |
![]() | GetRouteUrl(RouteValueDictionary) | |
![]() | GetRouteUrl(String, Object) | |
![]() | GetRouteUrl(String, RouteValueDictionary) | |
![]() | GetType | |
![]() | GetUniqueIDRelativeTo | |
![]() | HasControls | |
![]() | HasEvents | |
![]() | IsLiteralContent | Infrastructure. |
![]() | LoadControlState | |
![]() | LoadViewState | |
![]() | MapPathSecure | |
![]() | MemberwiseClone | |
![]() | MergeStyle | |
![]() | OnBubbleEvent | |
![]() | OnDataBinding | |
![]() | OnInit | |
![]() | OnLoad | |
![]() | OnPreRender | |
![]() | OnUnload | |
![]() | OpenFile | |
![]() | RaiseBubbleEvent | |
![]() | RemovedControl | |
![]() | Render | |
![]() | RenderBeginTag | |
![]() | RenderChildren | |
![]() | RenderContents | |
![]() | RenderControl(HtmlTextWriter) | |
![]() | RenderControl(HtmlTextWriter, ControlAdapter) | |
![]() | RenderEndTag | |
![]() | ResolveAdapter | |
![]() | ResolveClientUrl | |
![]() | ResolveUrl | |
![]() | SaveControlState | |
![]() | SaveViewState | |
![]() | SetDesignModeState | |
![]() | SetRenderMethodDelegate | Infrastructure. |
![]() | SetTraceData(Object, Object) | |
![]() | SetTraceData(Object, Object, Object) | |
![]() | ToString | |
![]() | TrackViewState |
| Nom | Description | |
|---|---|---|
![]() | DataBinding | |
![]() | Disposed | |
![]() | Init | |
![]() | Load | |
![]() | PreRender | |
![]() | Unload |
| Nom | Description | |
|---|---|---|
![]() | FindDataSourceControl | |
![]() | FindFieldTemplate | |
![]() | FindMetaTable |
| Nom | Description | |
|---|---|---|
![]() ![]() | IAttributeAccessor.GetAttribute | Infrastructure. |
![]() ![]() | IAttributeAccessor.SetAttribute | |
![]() ![]() | IControlBuilderAccessor.ControlBuilder | |
![]() ![]() | IControlDesignerAccessor.GetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetOwnerControl | Infrastructure. |
![]() ![]() | IControlDesignerAccessor.UserData | |
![]() ![]() | IDataBindingsAccessor.DataBindings | |
![]() ![]() | IDataBindingsAccessor.HasDataBindings | |
![]() ![]() | IExpressionsAccessor.Expressions | |
![]() ![]() | IExpressionsAccessor.HasExpressions | |
![]() ![]() | IParserAccessor.AddParsedSubObject |
Introduction
Attention |
|---|
Syntaxe déclarative
<asp:TableRow
AccessKey="string"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
Inset|Outset"
BorderWidth="size"
CssClass="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
HorizontalAlign="NotSet|Left|Center|Right|Justify"
ID="string"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
SkinID="string"
Style="string"
TabIndex="integer"
TableSection="TableHeader|TableBody|TableFooter"
ToolTip="string"
VerticalAlign="NotSet|Top|Middle|Bottom"
Visible="True|False"
Width="size"
>
<asp:TableCell
AccessKey="string"
AssociatedHeaderCellID="string"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|
Groove|Ridge|Inset|Outset"
BorderWidth="size"
ColumnSpan="integer"
CssClass="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|
X-Small|Small|Medium|Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
HorizontalAlign="NotSet|Left|Center|Right|Justify"
ID="string"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
RowSpan="integer"
runat="server"
SkinID="string"
Style="string"
TabIndex="integer"
Text="string"
ToolTip="string"
VerticalAlign="NotSet|Top|Middle|Bottom"
Visible="True|False"
Width="size"
Wrap="True|False"
/>
<asp:TableHeaderCell
AbbreviatedText="string"
AccessKey="string"
AssociatedHeaderCellID="string"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|
Groove|Ridge|Inset|Outset"
BorderWidth="size"
CategoryText="string"
ColumnSpan="integer"
CssClass="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|
X-Small|Small|Medium|Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
HorizontalAlign="NotSet|Left|Center|Right|Justify"
ID="string"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
RowSpan="integer"
runat="server"
Scope="NotSet|Row|Column"
SkinID="string"
Style="string"
TabIndex="integer"
Text="string"
ToolTip="string"
VerticalAlign="NotSet|Top|Middle|Bottom"
Visible="True|False"
Width="size"
Wrap="True|False"
/>
</asp:TableRow>
| Topic | Location |
|---|---|
| Comment : ajouter des lignes et des cellules de façon dynamique à un contrôle serveur Web Table | Génération d'applications Web ASP.NET |
| Comment : ajouter des lignes et des cellules de façon dynamique à un contrôle serveur Web Table | Génération d'applications Web ASP.NET dans Visual Studio |
<%@ page language="C#" %> <%@ Import Namespace="System.Drawing" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> private void Page_Load(object sender, System.EventArgs e) { // Create a TableItemStyle object that can be // set as the default style for all cells // in the table. TableItemStyle tableStyle = new TableItemStyle(); tableStyle.HorizontalAlign = HorizontalAlign.Center; tableStyle.VerticalAlign = VerticalAlign.Middle; tableStyle.Width = Unit.Pixel(100); // Create more rows for the table. for (int rowNum = 2; rowNum < 10; rowNum++) { TableRow tempRow = new TableRow(); for (int cellNum = 0; cellNum < 3; cellNum++) { TableCell tempCell = new TableCell(); tempCell.Text = String.Format("({0},{1})", rowNum, cellNum); tempRow.Cells.Add(tempCell); } Table1.Rows.Add(tempRow); } // Apply the TableItemStyle to all rows in the table. foreach (TableRow rw in Table1.Rows) foreach (TableCell cel in rw.Cells) cel.ApplyStyle(tableStyle); // Create a header for the table. TableHeaderCell header = new TableHeaderCell(); header.RowSpan = 1; header.ColumnSpan = 3; header.Text = "Table of (x,y) Values"; header.Font.Bold = true; header.BackColor = Color.Gray; header.HorizontalAlign = HorizontalAlign.Center; header.VerticalAlign = VerticalAlign.Middle; // Add the header to a new row. TableRow headerRow = new TableRow(); headerRow.Cells.Add(header); // Add the header row to the table. Table1.Rows.AddAt(0, headerRow); } </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <title>TableCell Example</title> </head> <body> <form id="form1" runat="server"> <div> <h1>TableCell Example</h1> <asp:table id="Table1" runat="server" CellPadding="3" CellSpacing="3" Gridlines="both"> <asp:TableRow> <asp:TableCell Text="(0,0)" /> <asp:TableCell Text="(0,1)" /> <asp:TableCell Text="(0,2)" /> </asp:TableRow> <asp:TableRow> <asp:TableCell Text="(1,0)" /> <asp:TableCell Text="(1,1)" /> <asp:TableCell Text="(1,2)" /> </asp:TableRow> </asp:table> </div> </form> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

