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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data navigation using multiple grids with a single data source

Status
Not open for further replies.

GAllan60

IS-IT--Management
Jul 28, 2003
2
GB
Hi All

I'm currently developing a GIS application that interacts with an Oracle database. I'm trying to do something like this:

Database--Query ----Form 1--Data Source-Grid
Table \
\--------Form 2--Data Source-Grid

The idea being that if I edit data in form 1 it is shown as edited in form 2 when I exit the record rather than having to re-query. This currently works but both grids scroll simultaneously.

Is it possible to keep the editing linked but allow the two grids scroll independently? Ideally the active record would still remain highlighted in both grids, even if it’s not visible in one of the forms.

If anyone is familiar with MapInfo I'd like something like the editing that is available there.

I’m using a TSmartQuery from CoreLab to provide the query and data source.

Thanks


Graham
 
Look at DataSet.DisableControls / EnableControls. Note that calls to DisableControls can be nested and has a hidden Count. See also boolean function ControlsDisabled.

Roo
Delphi Rules!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top