Q: I have a form that uses several TDBGrids. It has only one navigator control. How do I write it so that I can use the navigator control so that it works with whatever grid is active?
A: Use this line in the Enter event of each grid:
TDBNavigator1.dataSource := (sender as TDBGrid).dataSource;