Solved

DbGrid SelectedRows

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now