Click TDBGrid cell and display memo/blob record

I am using Delphi 3 with a TDBGrid component, whose datasource is a Paradox table.  In this table is a Memo field of a memo/blob type.  At run time, the column representing this memo/blob field displays a little page icon.  Clicking on this cell does nothing.


How does one detect when this particular cell has been clicked on, and how do I display the contents of this memo/blob field from the TDBGrid?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hi Monroe406,

use a second form, place there a tdbmemo (alclient) connect it it with your dataset of your form1 and the blobfield. this will show now allways the memocontent of the current record.

to show this form by doubleclick on the dbgrid-field use

procedure TForm1.DBGrid1DblClick(Sender: TObject);
  IF DBGrid1.SelectedField.FieldName = 'MyMemoFieldName' then


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Monroe406Author Commented:
I have done as you have said...but it does not work.

The Form2 does appear, but the contents of the TDBMemo is blank.

My table does indeed have memo/blob fields with data in it, however that data is not showing up in the Form2.Show.

Yes, I have associated the TDBMemo.DataField to the corresponding table's field.

P.S. you failed to mention that I needed to drop a TTable and TDataSource component on the form.  I went ahead and did this, assuming you assumed I knew this.
hi Monroe406,

> you failed to mention that I needed to drop a TTable and TDataSource
>  component on the  form.

no that meant i not, use the  tdatasource of your form1, where the dbgrid is connected to it.

to do this, add after the implementation-keyword of your form2-unit :

uses TheNameOfYourForm1-Unit;

the datasourcename of the tdbmemo is :
Form1.Datasource1; //if it so named by yours

please try again

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.