Binding two comboboxes to one table with composite primary key

1 posts, 0 answers
  1. MuxMux
    MuxMux avatar
    4 posts
    Member since:
    Oct 2011

    Posted 22 Nov 2012 Link to this post

    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.

Back to Top