DataBrowser.EnableColumnTitles Method (Typed) | |
Turn column titles on or off for the entire browser.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD EnableColumnTitles(
lEnable AS LOGIC
) AS LOGIC
public virtual bool EnableColumnTitles(
[DefaultParameterValueAttribute(true, 0)] bool lEnable
)
Request Example
View SourceParameters
- lEnable
- Type: Logic
TRUE shows column titles; FALSE hides them. The default is TRUE.
Return Value
Type:
Logic
TRUE if successful; otherwise, FALSE.
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:
1METHOD Init( oOwner ) CLASS DW_Detail_DataBrowser
2SUPER:Init( oOwner )
3SELF:EnableColumnTitles( FALSE )
4RETURN SELF
See Also