Page 1 of 1

DBGrid - Multiselection work not correct after delete a record

Posted: Thu 10 Jan 2008 17:22
by mdiehlz
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

Posted: Fri 11 Jan 2008 13:13
by Dimon
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.

Posted: Sat 12 Jan 2008 09:20
by mdiehlz
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

Posted: Tue 15 Jan 2008 10:21
by Dimon
Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next SDAC build.