Q: Reading cursor position in TDBGrid 
Author Message
 Q: Reading cursor position in TDBGrid

I have a DBGrid with its ReadOnly property set to True, linked to a
Paradox 5.0 table via a TDataSource and TTable in delphi 1. When the
user clicks on this DBGrid, the focus rectangle moves to the cell where
the click occurred.

How can I read the position of the selected record (somewhere between 0
and Table1.RecordCount) in the underlying dataset?

Am I also correct in thinking that just clicking on the DBGrid does
*not* move the database cursor?
--
Barney Tyrwhitt-Drake



Tue, 04 May 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Cursor Position Change

2. saving TDBGrid's column position

3. Q TDBGrid column positioning

4. cursor position goes nuts, what the heck?

5. Positioning the cursor.

6. Detecting mouse position in TDBGrid

7. "Q" TDBGrid cursor postion

8. qs?.mb files and lost data

9. Database link'n'joining Qs

10. TDBGrid - How Do You Read The Selected Row?

11. TDBGrid read-only field - No Entry!

12. Blinking cursor in read-only DBMemo

 

 
Powered by phpBB® Forum Software