Article View: borland.public.cppbuilder.database.ado
Article #3635Re: Sorting DBGrid
From: Ronald Loonstra
Date: Mon, 22 Jul 2002 22:03
Date: Mon, 22 Jul 2002 22:03
36 lines
1697 bytes
1697 bytes
typedef void __fastcall (__closure *TDBGridClickEvent)(TColumn* Column);
__property TDBGridClickEvent OnTitleClick = {read=FOnTitleClick,
write=FOnTitleClick};
--
HTH
Ronald Loonstra
CodeFit Applications
www.codefit.nl
"Paul" <pstark@swissonline.ch> schreef in bericht news:3d33df23$1_1@dnews...
> Hello
>
> How do you check, which column was clicked in the titel?
>
> Regards
> Paul
>
>
> "Ola Eriksen" <ola@callcom.no> schrieb im Newsbeitrag
> news:1103_1025773874@ola...
> > Hello!
> >
> > A simple question I guess :)
> >
> > Can anyone help me with some code so that I can sort the TDBGrid by the
> field the user selects.
> > I've activated the OnTitleClilck event, but I've not managed to write a
> code that works :(
> >
> > Thanks!
> >
> >
>
>
Technical Details
Message-ID:
<3d3c7ffd_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newspump.sol.net!news.maxwell.syr.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<1103_1025773874@ola> <3d33df23$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,6f893f24f32b7eae X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-07-22 15:10:11 PST From: "Ronald Loonstra" <r.loonstra@codefit.nl> Newsgroups: borland.public.cppbuilder.database.ado References: <1103_1025773874@ola> <3d33df23$1_1@dnews> Subject: Re: Sorting DBGrid Date: Tue, 23 Jul 2002 00:03:52 +0200 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 217.121.245.5 Message-ID: <3d3c7ffd_2@dnews> X-Trace: dnews 1027375101 217.121.245.5 (22 Jul 2002 14:58:21 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newspump.sol.net!news.maxwell.syr.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews