?
Solved

MORE EASY POINTS! QUICK 50!

Posted on 1998-01-21
2
Medium Priority
?
158 Views
Last Modified: 2010-04-04
How do you select data from a grid and have it appear in an editbox.  In other words if I have a grid with data such as customers and want to be able to select one by double-clicking how can I do that?

Tony
0
Comment
Question by:aj85
2 Comments
 

Author Comment

by:aj85
ID: 1357253
Need answer if possible ASAP...
0
 
LVL 2

Accepted Solution

by:
mvz121697 earned 100 total points
ID: 1357254
The simplest way is to use the Ttable (or Tquery)
where the dbgrid is linked to.

In the OnDblClick-event of the dbgrid you can:

procedure TForm1.DBGrid1DblClick(Sender: TObject);
begin
   Edit1.Text:=Table1.FieldByName('FirstName').asstring;
end;
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

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…
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 video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month16 days, 9 hours left to enroll

862 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