Click or drag to resize

DataBrowser.EnableColumnTitles Method (Typed)

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

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

Parameters

lEnable
Type: Logic
TRUE shows column titles; FALSE hides them. The default is TRUE.

Return Value

Type: Logic
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