This is a migrated thread and some comments may be shown as answers.

Binding two comboboxes to one table with composite primary key

0 Answers 51 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
MuxMux
Top achievements
Rank 1
MuxMux asked on 22 Nov 2012, 01:06 PM

Hello,

Is it possible to bind two comboboxes to one table with composite primary key?

Suppose one has a table MyTable with two fields (int Level, varchar2 Code) which forms composite primary key.

The corresponding entity is

public class MyTable
{
   public MyEnum Level {get; set;}
   public string Code {get; set;}
}

where MyEnum is some enum.

I would like to bind two comboboxes to the list of such entities so that one combobox shows list of available items of MyEnum,

and the other one list of codes corresponding to the selected Level. Is it possible?

Thanks in advance.

Yours faithfully,

Mikhail.

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
MuxMux
Top achievements
Rank 1
Share this question
or