[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DataComboView: How to get record chosen from the drop-down


Le 20/05/2025 à 15:20, Lee a écrit :
On 5/20/25 7:56 AM, Benoît Minisini wrote:
Le 19/05/2025 à 20:28, Lee a écrit :
I simply cannot figure out how to determine what record was chosen from the DataComboView drop-down list (the DataView).

DataComboView.Value doesn't change. The DataSource.Index doesn't change.

I find no DataComboView_Change or _Activate events, so I'm using _MouseDown (_MouseUp doesn't get raised).

Am I doing something wrong? (Project attached.)



No. Apparently the DataComboView was intended to be put inside a DataSource only, and not to be used alone.

This control needs some enhancements for that.


Thank you for the response, Benoît. But, I am confused because I did have the DataComboView inside a DataSource (as in the project I sent).


It is supposed to act on its own. It has a 'Field' property that must be a field of the DataSource table, and that must be a foreign key to another table defined in its 'Table' property.

Of course, I can add some 'Click' event if you need to use it alone.

--
Benoît Minisini.


Follow-Ups:
Re: DataComboView: How to get record chosen from the drop-downLee <t.lee.davidson@xxxxxxxxx>
References:
DataComboView: How to get record chosen from the drop-downLee <t.lee.davidson@xxxxxxxxx>
Re: DataComboView: How to get record chosen from the drop-downBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: DataComboView: How to get record chosen from the drop-downLee <t.lee.davidson@xxxxxxxxx>