0

I have a TcxGrid component to show data of a MS Access table. One of this columns have a picture. The column "Properties" of this column is marked as "ButtonEdit".

I don't want to use a BlobEdit. I want to create another form, for display this picture. It will be opened by OnButtonClick() event of the grid column. But, I don't know how to get the column content (as TStream or other type), or the column name/field name in the OnButtonClick() event. I can't fix the column name, because it's a "generic" grid for show any Access table.

How can I do it?

RRUZ
  • 134,889
  • 20
  • 356
  • 483
marciel.deg
  • 400
  • 3
  • 17

2 Answers2

0

It will be nice to understand your question better if you can post your code. But offcourse You can get column contents easily by using FieldByName method. Try to use that.

VaibhavR
  • 28
  • 6
0

You did not say how you load the data into the grid, but to get the cell content you can use:

  VarAsType(cxGrid1TableView1.DataController.Values[cxGrid1TableView1.Controller.FocusedRecordIndex,cxGrid1TableView1.Controller.FocusedColumnIndex],varString)
Rigotti
  • 98
  • 2
  • 10