Retreive value from a cell in a dbgrid

Posted on 1999-12-19
Medium Priority
Last Modified: 2010-04-06
To get the value from a stringgrid you can use StringGrid1.cells[Col,Row] to reference the value for any particular cell. How do you achieve the same result for a Dbgrid.
Question by:clyde99
  • 2
LVL 17

Expert Comment

ID: 2294095
LVL 17

Accepted Solution

inthe earned 200 total points
ID: 2294103
hi again,
please ignore my last comment,you can do these instead:

procedure TForm1.Button1Click(Sender: TObject);
  //shows the value of the current field
  //shows the value of the 5th Column
  //shows the value of a specific Field of the current record


Regards Barry

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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…
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…
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…
Watch the video to know the simple way to remove or recover or reset lost or forgotten passwords of Outlook PST file. With Kernel Outlook Password Recovery tool such operation is very easy to perform. It is a freeware with limitation to use with 500…

624 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