DBGrid - Multiselection work not correct after delete a record

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mdiehlz
Posts: 5
Joined: Thu 06 Dec 2007 09:45

DBGrid - Multiselection work not correct after delete a record

Post by mdiehlz » Thu 10 Jan 2008 17:22

Hello

I use a TDBGrid with option dgMultiselect. The DBGrid use TMSQuery with option Cachedupdates = True.

First I select all records in dbgrid.

After deleting some records with

MyMSQuery.Delete;

some selections in the grid goes lost, because the internal comparsion RowIsMultiSelected in tDBGrid.DrawCell don't work well.
The problem:
After some delete Datalink.Datasource.Dataset.Bookmark return some false results und the dbgrid show wrong selections.

Is it possible, that bookmark after a delete brings a different result?

I use SDAC 4.30.0.12 prof and Delphi 2007 Enterprise with December update

Martin

Dimon
Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 11 Jan 2008 13:13

We can not reproduce the problem.
Please send a complete small sample to dmitryg*crlab*com to demonstrate it, including script to create and fill table.

mdiehlz
Posts: 5
Joined: Thu 06 Dec 2007 09:45

Post by mdiehlz » Sat 12 Jan 2008 09:20

Dimon wrote:Please send a complete small sample to dmitryg*crlab*com to demonstrate it, including script to create and fill table.
Done.

Regards

Martin

Dimon
Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 15 Jan 2008 10:21

Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next SDAC build.

Post Reply