RenderTableHeaderRow - Solution Sites Routine
This function prepares the HTML that will render a header row within a table. In other words, a series of TH elements wrapped in a TR element. It serves as a wrapper for the function RenderTableRow, hardcoding the iRowType parameter to the constant HEADER_ROW, and passing through all other parameters as is.
Definition
Function RenderTableHeaderRow(
arrData,
arrDataAttLists,
byVal sRowAttList)
Parameters
- arrData
An array of header strings to be displayed in the row, one array element per table column (TH element). The value Null and an empty string ("") are acceptable values for elements in this array. - arrDataAttLists
An array of strings, where each string contains a space-separated list of "attribute=value" pairs to be included in the corresponding TH element. These strings, if non-empty, must begin with a space character. If the array is not empty, it must have the same number of elements as the array specified by the arrData parameter. If the array is empty, the series of TH elements produced will not have any attributes associated with them. - sRowAttList
A string containing a space-separated list of "attribute=value" pairs to be included in the TR element, thereby affecting the entire row.
Return Value
A string containing the HTML that will render the specified header row in the table.
Defined in File
Routines Called
Called By
Remarks
If table cells have identical alignment (for example, center-aligned), there is no need to align cells individually. Simply specify the alignment for the row in the sRowAttList parameter and set the arrDataAttLists parameter to an empty array.
Copyright © 2005 Microsoft Corporation.
All rights reserved.