Forum Discussion
Colin_McCrae
9 years agoCommunity Hero
These are Delphi DB Grids right?
Do you have debug info in the compiled exe?
With debug info (which you pretty much need with these as there are a LOT of native methods and properties you won't get without it) I'm using a method called "DoTiTleButtonClick(<field-name>)" which works perfectly for me with all the various types of Delphi DB Grid (TDBGrid & TwwDBGrid .... off the top of my head).
But for that to work, you need the <field-name> of the column in question. Which is not necessarily the same as the column header. You need to check the underlying dataset object for that.