TDBLookupComboBox "OnFocusLost" problem
Hello,
I'm link a data source to my DBLookupComboBox by the databinding field.
On the DataSet of my DataSource, there is a OnDataChange method.
The problem is that when I select a value in my DBLookupComboBox, the
OnDataChange event is started two times:
* First time due to ImmediatePost property (= True). That's good
* Second time, when I click anywhere in my form. The DBLookupComboBox
lost the focus and there is an OnDataChange event.That's bad.
I try
* DataSet.FieldByName('itypetiers').OnChange := nil;
but that doesn't work.
Why is that second event started? How can I break it?
Thanks for all.
--- posted by geoForum on http://delphi.newswhat.com
I'm link a data source to my DBLookupComboBox by the databinding field.
On the DataSet of my DataSource, there is a OnDataChange method.
The problem is that when I select a value in my DBLookupComboBox, the
OnDataChange event is started two times:
* First time due to ImmediatePost property (= True). That's good
* Second time, when I click anywhere in my form. The DBLookupComboBox
lost the focus and there is an OnDataChange event.That's bad.
I try
* DataSet.FieldByName('itypetiers').OnChange := nil;
but that doesn't work.
Why is that second event started? How can I break it?
Thanks for all.
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
I have to post it in Delphi > Components.
Sorry again.
--- posted by geoForum on http://delphi.newswhat.com