🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.clx.components.using
Article #263

Re: TDBGrid problem

#263
From: Guillermo Castaño A
Date: Tue, 12 Mar 2002 13:19
26 lines
1890 bytes
Use the AfterScroll event of the first grid's dataset to obtain the number you
need and then use the locate method on the second dataset.

"S�ren" wrote:

> Hi
>
> I have two TDBGrid's which are connected to two different datasources. Both
> grids contain a list of numbers in column 1, and what I would like to do is,
> when I
> select a row in the grid A, I would like to search grid B for the same
> number and if it exists, I would
> like to select the corresponding row in grid B.
>
> I hope someone can help me with this one.
>
> Thanks in advance
>
> - Soren

--
Guillermo Casta�o Acevedo
Gerente de Sistemas - Grupo Millennium Ltda
GuillermoC@GrupoMillennium.com
www.GrupoMillennium.com
Quid quid latine dictum sit, altum viditur
Technical Details
Message-ID: <3C8E0067.4E6E010C@GrupoMillennium.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!cyclone2.usenetserver.com!usenetserver.com!newsfeed1.cidera.com!Cidera!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3c8de7d8_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 115cd4,67092d7df54a89da
X-Google-Attributes: gid115cd4,public
X-Google-Thread: 10545b,67092d7df54a89da
X-Google-Attributes: gid10545b,public
X-Google-ArrivalTime: 2002-03-12 05:31:03 PST
Message-ID: <3C8E0067.4E6E010C@GrupoMillennium.com>
Date: Tue, 12 Mar 2002 08:19:35 -0500
From: Guillermo Castaño A <GuillermoC@GrupoMillennium.com>
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.delphi.clx.components.using,borland.public.delphi.ide
Subject: Re: TDBGrid problem
References: <3c8de7d8_1@dnews>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 200.68.188.33
X-Trace: dnews 1015938949 200.68.188.33 (12 Mar 2002 05:15:49 -0800)
Lines: 28
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!cyclone2.usenetserver.com!usenetserver.com!newsfeed1.cidera.com!Cidera!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews