Article View: borland.public.cppbuilder.database.ado
Article #4333Re: TDBGrid->Columns Title Buttons @ Run-Time?
From: Richard
Date: Tue, 12 Feb 2002 16:50
Date: Tue, 12 Feb 2002 16:50
19 lines
1566 bytes
1566 bytes
Thanks for your reply. Your sample code helps me out with
where to put the sorting code, but I'd still like to change the
headings into buttons that work similar to "Explorer" column
buttons. Can you do this at run-time?
Richard
"Big Stew" <Big_Stew@talk21.com> wrote:
>Use the TitleClick event handler of the TDBGrid. You just need
>to change the index used for the TDBGrid->DataSource as the
>user click on the appropriate column heading.
>
>void __fastcall TSQLView::DBGTableTitleClick(TColumn *Column)
>{
>String Msg = "You clicked column " ;
>Msg += IntToStr(Column->Index) ;
>ShowMessage(Msg) ;
>}
Technical Details
Message-ID:
<3c6947bd$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3c67f817$1_2@dnews> <3c68d2df_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,64cce76e51f5c2fc X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-02-12 08:56:08 PST From: "Richard" <rwalls@geodigital-tech.com> Sender: "Richard" <rwalls@geodigital-tech.com> Reply-To: "Richard" <rwalls@geodigital-tech.com> Subject: Re: TDBGrid->Columns Title Buttons @ Run-Time? Newsgroups: borland.public.cppbuilder.database.ado X-User-Info: 4.40.51.206 4.40.51.206 References: <3c67f817$1_2@dnews> <3c68d2df_2@dnews> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3c6947bd$1_2@dnews> Date: 12 Feb 2002 08:50:05 -0800 X-Trace: dnews 1013532605 207.105.83.65 (12 Feb 2002 08:50:05 -0800) Lines: 21 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!dnews