Solved

DbGrid SelectedRows

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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