At run time use the following codes:

myGrid.Options := myGrid.Options - [dgTitles] to hide titles

and

myGrid.Options := myGrid.Options + [dgTitles] to show titles

In case it doesn't work, add the function Invalidate afterwards...

Good luck
Vahan

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf
Of soonhuat ong
Sent: Wednesday, July 13, 2005 10:10 AM
To: [email protected]
Subject: [delphi-en] Make TDBGRID title header invisible


I want to make the header for a TDBGRID component invisible to the user for
certain reason after Button1ClickEvent, any way for me to do this ? Thanks.


---------------------------------
Start your day with Yahoo! - make it your home page

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]



----------------------------------------------------------------------------
----
YAHOO! GROUPS LINKS

  a..  Visit your group "delphi-en" on the web.

  b..  To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]

  c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


----------------------------------------------------------------------------
----




[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to