Please could someone give me a pointer in the right direction on this
please.
I am developing a small application but I would like to stick with the 3
tier architecture if possible.
My forms are modeless with private datasessions. The problem is, I would
like to display a recordset in a grid on my form. The grid control will only
allow a table/cursor as a record source so I need some way to get that
recordset through the tiers. I have tried creating a cursoradapter but the
cursor gets created in the default datasession instead of the private one. I
am on the verge of just coding the data access straight into my grid control
but that would break the 3 tier design.
Is my best option ADO or another idea? If I use ADO is there a grid that
will accept ADO as a recordset or do I have to convert it back to a cursor?
Your thoughts please.

--
Regards
Darren Woodford - MCP, MCSE
Woodford Computer Systems Ltd
http://www.woodfordcomputers.co.uk
http://www.pegasus-opera-ii.co.uk

Re: Grids on form with Private Datasession and 3 tier application by Holger

Holger
Tue Aug 03 09:15:43 CDT 2004

Hi,

> Is my best option ADO or another idea? If I use ADO is there a grid that
> will accept ADO as a recordset or do I have to convert it back to a
cursor?

you could create an ADO recordset in your middle tier.
Your user interface tier could pick up a reference to that ADO recordset and
use it as a datasource for a CursorAdapter.
The CursorAdapter automatically creates a Cursor for your Grid control.

--
Holger Vorberg
MS Visual FoxPro MVP, Germany