Focus & Selection from program

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
ghanshaw
Newbie
Newbie
Posts: 13
Joined: Wed Dec 13, 2017 12:00 am

Focus & Selection from program

Post by ghanshaw » Thu Dec 28, 2017 11:29 am

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?

ghanshaw
Newbie
Newbie
Posts: 13
Joined: Wed Dec 13, 2017 12:00 am

Re: Focus & Selection from program

Post by ghanshaw » Thu Dec 28, 2017 12:18 pm

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)?

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Focus & Selection from program

Post by Yeray » Mon Jan 08, 2018 2:20 pm

Hello,

Try with this:

Code: Select all

type TCustomTeeGridAccess=class(TCustomTeeGrid);
//...
  TCustomTeeGridAccess(TeeGrid1.Grid).StartEditor;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply