Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

One TTable multiple cursors

1 view
Skip to first unread message

dpap

unread,
Mar 5, 2008, 4:44:45 AM3/5/08
to
Hi,
I want to open a Paradox Table with a TTable/TDatasource pair but I want to
show some records (filtered or ranged) on one TDBstringGrid and other
(different filter/range) on other TDBstringGrid at the same time. I also
want these TDBstringGrids to scroll independently
How can I do this ?

thanks in advance

Bill Todd [TeamB]

unread,
Mar 5, 2008, 8:12:55 AM3/5/08
to
dpap wrote:

> How can I do this ?

By using two TTables. One TTable = one cursor. There is no
TDBStringGrid. I assume you mean TDBGrid.

--
Bill Todd (TeamB)

dpap

unread,
Mar 5, 2008, 12:07:50 PM3/5/08
to
thanks Bill,
this approach I use but I want something to avoid duplicating the fields
using two tables, but now I realize that isn't possible to apply two
concurrent filters to the same table or use the same fields.

Bill Todd [TeamB]

unread,
Mar 5, 2008, 11:45:08 AM3/5/08
to
dpap wrote:

> but I want something to avoid duplicating the fields using two tables

You do not duplicate the fields. You use two TTables that both open the
same database table and access the same fields in the database table.
You are just opening two cursors on the same table and fields.

--
Bill Todd (TeamB)

Rich Werning

unread,
Mar 11, 2008, 1:41:29 PM3/11/08
to
You could always use a TClientDataset instead of a TTable, and then use a
CloneCursor to have 2 different CDS's pointing to the same data in memory.

--
Rich Werning
TIP Technologies, Inc.

"dpap" <dp...@softwaypro.gr> wrote in message
news:47ce...@newsgroups.borland.com...

0 new messages