Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBEXPRESS: Operation not allowed on unidirectional dataset

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I put a datasource, sqlconnection, sqlquery and a dbgrid,
and when I try to change dbgrid datasource it tells me:
"Operation not allowed on unidirectional dataset"

What is the solution to this!

 
I haven't used dbexpress, but have seen changing the datasource of a Tquery fail if the Tquery was not first made inactive.
 
"Operation not allowed on unidirectional dataset"

A unidirectional dataset can only move through records in one direction, not back and forward. A grid can move in both directions and so can't be connected to a unidirectional dataset.

You realy need to read the "Developers Guide", part II, 'Developing Database Applications', page 14-6.

To use a grid you need these components ...
SQLQuery
DataSetProvider
ClientDataSet
DataSource
DBGrid

This can also be achieved by using the TSQLClientDatSet which murges the first 3 components in the above list into 1.

Tim Dover
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top