> > There is actually a very small problem: when selecting a line with 
> > MasterID =3 the dropdownbox will select the first xxx 
> instead of the 
> > second.
> >
> 
> Please create a specific bugreport for dbgrid so i can provide a patch
> 

DBGrid? It is the dropdownbox of the TDBLookupComboBox that highlights the
wrong xxx. There is no DBGrid involved.

In your test program, select in TDBLookupComboBox the second xxx, MasterID
of the datasource is updated to 3. That is fixed. Update uses key instead of
listvalue. Now the other way around: select in the datasource a record with
MasterID = 3, open the dropdownbox in TDBLookupComboBox and you'll see the
first xxx highlighted. There is still a locate of the listvalue instead of
key.

Ludo
  


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to