Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Combo Box and SQL Query

4 views
Skip to first unread message

Fiaola

unread,
May 14, 2012, 10:07:54 PM5/14/12
to
I'm new at C# and trying to learn a few simple things. I'm from a
Delphi background. I have a simple application. I have 2 combo box
on a form.

1. Combo1 is bound to a Dataset for Master Records. (order records)
2. Combo2 is bound to a dataset for Details Records. (OrderDetails)

What i would like to do is , when a user select a Master Record from
Combo1, combo2 one will ONLY show the detail records that is
associated with Combo1.

Thanks in advance

Peter Duniho

unread,
May 15, 2012, 3:40:32 AM5/15/12
to
Impossible to give precise advise without a concise-but-complete code
example. But the general idea is for your second DataSet (the one bound to
"combo2") to be populated based on the selection of the first ComboBox
("combo1").

Depending on how the binding is configured, you should be able to re-query
the second DataSet according to changes in the selection in "combo1", and
have the new rows in the second DataSet reflected automatically in
"combo2".

Pete
0 new messages