Recent

Author Topic: How to detect the end of editing a cell in a TStringGrid?  (Read 835 times)

stem

  • Jr. Member
  • **
  • Posts: 98
How to detect the end of editing a cell in a TStringGrid?
« on: January 04, 2024, 10:06:35 pm »
Hi,

OnSetEditText fires every time when a change happens to a TStringGrid cell while editing. How can I detect the end of editing the cell, i.e. when the user presses Enter or another cell is selected?

stem

wp

  • Hero Member
  • *****
  • Posts: 12860
Re: How to detect the end of editing a cell in a TStringGrid?
« Reply #1 on: January 04, 2024, 10:36:13 pm »
The event OnEditingDone fires exactly at the times that you describe: when the ENTER key has been pressed or another cell has been selected.

stem

  • Jr. Member
  • **
  • Posts: 98
Re: How to detect the end of editing a cell in a TStringGrid?
« Reply #2 on: January 05, 2024, 01:56:01 pm »
Thank you.

 

TinyPortal © 2005-2018