Alex Rivera | Logout

Finding the current row in Delphi's TDBGrid

Asked 2009-03-23T01:44:58.187
9

Is there a way of finding out which row is current in a TDBGrid?

Edit
Report

1 Answer

5

I'm not sure if I understand your question, but I'll attempt an answer and maybe you can clarify if this isn't what you are asking.

Since a TDBGrid is tied to a DataSource, the current row is the same as the current row in the data source. You can query the DataSource, either by looking at a primary key value or the RecNo property to determine which record is the current one.

answered 2009-03-23T04:55:55.437

Your Answer