Solved

MORE EASY POINTS! QUICK 50!

Posted on 1998-01-21
2
141 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
Comment Utility
Need answer if possible ASAP...
0
 
LVL 2

Accepted Solution

by:
mvz121697 earned 50 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

13 Experts available now in Live!

Get 1:1 Help Now