DbGrid SelectedRows

Posted on 2008-10-21
Last Modified: 2013-11-23
Hi all,

I want to make the row selected folowing the dataset scrow.
When I type the arrows to change the current record I want the row that matches the record selected.

Does anyone how to do that?

Question by:paulo_psa
LVL 37

Accepted Solution

Geert Gruwez earned 250 total points
ID: 22773814
procedure TForm1.DataSource1DataChange(Sender: TObject; Field: TField);
  DBGrid1.SelectedRows.CurrentRowSelected := True;

Author Closing Comment

ID: 31508587
thanks... it worked...

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Print Graphic and Text to Epson TM-T88v 12 378
JAudiorecorder record freezing the app 29 74
Delphi: barcode reading on android platform 1 51
Twebbrowser add css to the header 3 27
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question