Recent

Author Topic: TDBEdit uneditable  (Read 705 times)

LemonParty

  • Full Member
  • ***
  • Posts: 111
TDBEdit uneditable
« on: January 24, 2025, 06:37:57 pm »
I have a weird behavior. When I set focus into TDBEdit the value of cell dissappear. Half of my TDBEdits have this problem the other ones work normally. Readonly property is not set up. Why is this happening?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12025
  • FPC developer.
Re: TDBEdit uneditable
« Reply #1 on: January 24, 2025, 06:51:32 pm »
Hard to say. Maybe a dataset with an "on update"  event that only implements some fields?

LemonParty

  • Full Member
  • ***
  • Posts: 111
Re: TDBEdit uneditable
« Reply #2 on: January 24, 2025, 07:11:31 pm »
No on update event. I tryied with different dataset and it works fine.

ackarwow

  • Full Member
  • ***
  • Posts: 131
    • Andrzej Karwowski's Homepage
Re: TDBEdit uneditable
« Reply #3 on: January 24, 2025, 07:29:42 pm »
I have a weird behavior. When I set focus into TDBEdit the value of cell dissappear. Half of my TDBEdits have this problem the other ones work normally. Readonly property is not set up. Why is this happening?

Hi @LemonParty

Maybe OnEnter event is set and nulling the field?

korba812

  • Sr. Member
  • ****
  • Posts: 451
Re: TDBEdit uneditable
« Reply #4 on: January 25, 2025, 12:19:36 am »
Maybe you have something in TField.EditFormat property that is causing this problem?

LemonParty

  • Full Member
  • ***
  • Posts: 111
Re: TDBEdit uneditable
« Reply #5 on: January 25, 2025, 03:48:30 pm »
EditFormat is empty in all fields.

LemonParty

  • Full Member
  • ***
  • Posts: 111
Re: TDBEdit uneditable
« Reply #6 on: January 25, 2025, 03:55:58 pm »
I found the reason. Field have set up event GetText.

 

TinyPortal © 2005-2018