Article View: borland.public.delphi.winforms.controls.using
Article #439GotoBookMark & TDbGrid
From: Pierre Marie
Date: Wed, 25 May 2005 13:37
Date: Wed, 25 May 2005 13:37
33 lines
1723 bytes
1723 bytes
Hello,
Here is my pb:
i am using a TDGrid with records inside and multiselect:=true;
If you select 4 rows in the top of the grid and do this on a btn event:
dm.DT7_ATT.disablecontrols;
if awatt.selectedrows.count>0 then
for i:=0 to awatt.Selectedrows.count-1 do
begin
dm.DT7_ATT.GotoBookmark(TBookmark(awatt.SelectedRows.items[i]));
// dm.DT7_ATT.delete;
end;
dm.DT7_ATT.EnableControls;
Nothing happens and it is normal.
If you select some rows on the bottow of the grid and click then btn then,
you will see the rows being translated to the middle of the grid, just as if
your were pressing on the down vertical scrollbar.
Is there a way to avoid this ?
Thanks
My config: D7
--
Courtoisement
Pierre-Marie PETIT
pm@nst.fr
03 20 06 63 94
Technical Details
Message-ID:
<42947f92@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!proxad.net!feeder1.cambrium.nl!feed.tweaknews.nl!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,336be952b7cf00cc,start X-Google-Attributes: gid1eff29,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Pierre Marie" <pm@nst.fr> Newsgroups: borland.public.delphi.winforms.controls.using Subject: GotoBookMark & TDbGrid Date: Wed, 25 May 2005 15:37:23 +0200 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 193.251.72.70 Message-ID: <42947f92@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1117028242 193.251.72.70 (25 May 2005 06:37:22 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!proxad.net!feeder1.cambrium.nl!feed.tweaknews.nl!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail