Click or drag to resize

DataBrowser.EnableColumnTitles Method

X#
Turn column titles on or off for the entire browser.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD EnableColumnTitles(
	lEnable
) AS USUAL CLIPPER
Request Example View Source

Parameters

lEnable (Optional)
Type: Usual
TRUE shows column titles; FALSE hides them. The default is TRUE.

Return Value

Type: Usual
A logical value indicating whether or not the operation was successful.
Remarks
This method has been introduced to replace the functionality of calling DataColumn:SetCaption with a NIL argument, which is documented as removing the caption area from the column. Since column caption areas cannot be removed from single columns, it must be done globally for the entire browser.
Examples
The following example illustrates how DataBrowser:EnableColumnTitles may be used to suppress the display of column titles in a subform browser created via Window Editor-generated source code:
X#
1METHOD Init( oOwner ) CLASS DW_Detail_DataBrowser
2SUPER:Init( oOwner )
3SELF:EnableColumnTitles( FALSE )
4RETURN SELF
See Also