Board index » delphi » DBGrid selected text

DBGrid selected text

How do I get the selected text in a cell of a DBGrid?

thanX
hokki

 

Re:DBGrid selected text


Quote
>"H?kan Fagerstr?m" wrote:

> How do I get the selected text in a cell of a DBGrid?

You will have to access the InplaceEditor. Since this is
protected in CustomGrid, you need a cracker class like

  type
    TCrackGrid = class(TDBGrid);
  .
  .
  s := TCrackGrid(DBGrid1).InplaceEditor.SelText;
________
Andreas
Delphi 5.01 Pro, NT4.0 Sp5
Direct replies mailto:p...@augsburg.netsurf.de

Other Threads