?
Solved

MORE EASY POINTS! QUICK 50!

Posted on 1998-01-21
2
Medium Priority
?
152 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

770 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