Export (0) Print
Expand All

TableCell.AssociatedHeaderCellID Property

Gets or sets a list of table header cells associated with the TableCell control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

[TypeConverterAttribute(typeof(StringArrayConverter))] 
public virtual string[] AssociatedHeaderCellID { get; set; }
/** @property */
public String[] get_AssociatedHeaderCellID ()

/** @property */
public void set_AssociatedHeaderCellID (String[] value)

public function get AssociatedHeaderCellID () : String[]

public function set AssociatedHeaderCellID (value : String[])

Not applicable.

Property Value

An array of strings containing the identifiers of the associated table header cells.

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.

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>

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft