Page 1 of 1

Focus & Selection from program

Posted: Thu Dec 28, 2017 11:29 am
by 18682546
How do you set focus to a particular cell in a TeeGrid from a program?
How do you select the data in the cell for editing from a program?

Re: Focus & Selection from program

Posted: Thu Dec 28, 2017 12:18 pm
by 18682546
I figured out the set focus part of it.

TeeGrid1.Selected.Change(TeeGrid1.Columns[Column],Row);

Is there a way to switch this to edit mode (similar to double click)?

Re: Focus & Selection from program

Posted: Mon Jan 08, 2018 2:20 pm
by yeray
Hello,

Try with this:

Code: Select all

type TCustomTeeGridAccess=class(TCustomTeeGrid);
//...
  TCustomTeeGridAccess(TeeGrid1.Grid).StartEditor;