Board index » delphi » Avoiding 'Bookmarks do not match table'

Avoiding 'Bookmarks do not match table'

Hi,

I have a DBGrid where I want to change the table's indexname when I click on
the column title cells.  How do I avoid the 'Bookmarks do not match table'
errors when I simply change the index on the current dbgrid table?

Thanks for any hints

Tor

 

Re:Avoiding 'Bookmarks do not match table'


Quote
>I have a DBGrid where I want to change the table's indexname when I click on
>the column title cells.  How do I avoid the 'Bookmarks do not match table'
>errors when I simply change the index on the current dbgrid table?

I don't have any problem with that error changing indexes
Are you trying to change the index on a detail table?
Detail tables need to be linked on an index that contains the linking field
values and you need to clear and reset the masterfields when you change the
index on a detail field.

--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Re:Avoiding 'Bookmarks do not match table'


Quote
"Tor Tveitane" <t...@nospam-bushsoft.com> wrote in message

news:3bddc566_1@dnews...

Quote
> I have a DBGrid where I want to change the table's indexname
> when I click on the column title cells.  How do I avoid the
> 'Bookmarks do not match table' errors when I simply change
> the index on the current dbgrid table?

Does this snippet from D2 Help have any relevance here?

-----------------------
GetBookmark method ...
...
...
Note: All bookmarks are invalidated when a dataset is closed and when a
table's index is changed.
------------------------

--
Regards,
Chris Luck

Other Threads