TableCell.AssociatedHeaderCellID Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a space-separated list of table header cells associated with the TableCell control.
public:
virtual property cli::array <System::String ^> ^ AssociatedHeaderCellID { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.StringArrayConverter))]
public virtual string[] AssociatedHeaderCellID { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.StringArrayConverter))>]
member this.AssociatedHeaderCellID : string[] with get, set
Public Overridable Property AssociatedHeaderCellID As String()
Property Value
An array of strings containing the identifiers of the associated table header cells.
- Attributes
Examples
The following code example demonstrates how to declaratively specify the AssociatedHeaderCellID property of a TableCell control. In particular, note how the cell in the last row is associated to three header cells. For a complete, working code example, see the TableHeaderCell class overview topic.
<asp:TableCell AssociatedHeaderCellID="Column1Header Column2Header Column3Header"
ColumnSpan="3"
HorizontalAlign="Left">(2,0)
</asp:TableCell>
<asp:TableCell AssociatedHeaderCellID="Column1Header Column2Header Column3Header"
ColumnSpan="3"
HorizontalAlign="Left">(2,0)
</asp:TableCell>
Remarks
The AssociatedHeaderCellID property contains a list of header cell programmatic identifiers that provide header information of the TableCell control. The list of header cell identifiers is rendered as a comma delimited list into the HTML <td>
element's header
attribute.
When setting the AssociatedHeaderCellID property use a comma delimited list of strings. If an element of the list is not recognized as a valid table header cell an HttpException is thrown when the AddAttributesToRender is invoked.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈