🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #4330

Re: TDBGrid->Columns Title Buttons @ Run-Time?

#4330
From: Big Stew
Date: Tue, 12 Feb 2002 08:30
18 lines
1615 bytes
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) ;
}

BigStew

"Richard" <rwalls@geodigital-tech.com> wrote in message
news:3c67f817$1_2@dnews...
>  What I'd like to do is make all of the Column Headings/Titles into
buttons, used for sorting the Columns.  I have to do this at run-time
because I'm not sure of the Column names, yet.
Technical Details
Message-ID: <3c68d2df_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!hub1.nntpserver.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3c67f817$1_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 00:39:45 PST
From: "Big Stew" <Big_Stew@talk21.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3c67f817$1_2@dnews>
Subject: Re: TDBGrid->Columns Title Buttons @ Run-Time?
Date: Tue, 12 Feb 2002 08:30:22 -0000
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 212.19.90.97
Message-ID: <3c68d2df_2@dnews>
X-Trace: dnews 1013502687 212.19.90.97 (12 Feb 2002 00:31:27 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!hub1.nntpserver.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews