Thread View: borland.public.delphi.vcl.components.using.general
3 messages
3 total messages
Started by sriram kota
Fri, 11 Jul 2008 17:21
default value in TDBLookupComboBox?
Author: sriram kota
Date: Fri, 11 Jul 2008 17:21
Date: Fri, 11 Jul 2008 17:21
8 lines
1244 bytes
1244 bytes
I want a default display value to showup in TBLookUpCombobox without the user having to click it, i tried setting the datafield of the underlying table with the keyfield value from the list source, it didnt work. Any suggestions on how i can do this? i am using delphi 2006, dbgo with firebird DB. TIA
Re: default value in TDBLookupComboBox?
Author: yannis
Date: Tue, 15 Jul 2008 07:04
Date: Tue, 15 Jul 2008 07:04
9 lines
1083 bytes
1083 bytes
Have you tried to navigate the listsource.dataset to the record you want as the default value? If I remember correctly this should have the effect you are after. regards Yannis. -- "My opinions might have changed, but not the fact that I am right."
Re: default value in TDBLookupComboBox?
Author: sriram kota
Date: Tue, 15 Jul 2008 23:15
Date: Tue, 15 Jul 2008 23:15
14 lines
1474 bytes
1474 bytes
Actually i was doing it the rightway, i made a mistake in assigning a char to an integer field. Its working great now. Thanks for replying though. "yannis" <none@noware,non> wrote in message news:487c4c02$1@newsgroups.borland.com... > Have you tried to navigate the listsource.dataset to the record you > want as the default value? If I remember correctly this should have the > effect you are after. > > regards > Yannis. > -- > "My opinions might have changed, but not the fact that I am > right."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads