Solved

MORE EASY POINTS! QUICK 50!

Posted on 1998-01-21
2
143 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 50 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

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

914 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

14 Experts available now in Live!

Get 1:1 Help Now