Previous Topic: detailSetValidate( hdrtext, is_required, maxsize )

Next Topic: detailSetRowData( text )


detailRowHdr( hdrtext, colspan, is_required )

This function stores text for the header (TH) element of an item in the grid. The text is not actually written to the form until a detailWriteRow() function or dtlStartRow macro is invoked.

hdrtext

Specifies the text in the header element. This argument is required.

colspan

Specifies the number of columns in the grid occupied by the element. This argument is optional; it defaults to one if not provided. If omitted, the element is assumed to occupy one column of the grid. This affects arrow key behavior. The colspan argument must be provided if the is_required argument is provided.

is_required

Specifies whether the hdrtext should be displayed in the style corresponding to a required field. The argument can be a Boolean, a number, or a string. A number or a string is interpreted as false if zero and true otherwise. This argument is optional; if omitted, the hdrtext is styled as a non-required field.