Solved

DbGrid SelectedRows

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

17 Experts available now in Live!

Get 1:1 Help Now