Solved

DbGrid SelectedRows

Posted on 2008-10-21
2
1,525 Views
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?

thkx
Paulo
0
Comment
Question by:paulo_psa
2 Comments
 
LVL 37

Accepted Solution

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

Author Closing Comment

by:paulo_psa
ID: 31508587
thanks... it worked...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 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