What is the best way to handle a many-to-many mapping in the DB for a table that is being represented with the Grid control using databinding?
Let's say I have a employee contact table and it currently has a FK for ContactTypeID which is a lookup to one of a variety of contact types.
Currently it is a databound dropdown list in the grid. But let's say that I want to make it a many to many mapping by inserting a mapping table called EmployeeContacts which contains a FK to Employee table and a FK to ContactTypes table.
I still want a single grid that shows and edits employee contacts from the Employee table, but I now want the column that used to be a simple drop down of Contact Types to be a drop down with multiple check boxes or some other kind of column that lets me choose more than one selection. Then I want to keep as much of the databinding as possible, or do I have to manually code the back end hook up of the checking and recording of the checkboxes upon edit form submission?
Anybody have an example of this kind of usage with RadGrid? m2m mapping tables are a pretty common need.
Thanks in advance,
Rob
Let's say I have a employee contact table and it currently has a FK for ContactTypeID which is a lookup to one of a variety of contact types.
Currently it is a databound dropdown list in the grid. But let's say that I want to make it a many to many mapping by inserting a mapping table called EmployeeContacts which contains a FK to Employee table and a FK to ContactTypes table.
I still want a single grid that shows and edits employee contacts from the Employee table, but I now want the column that used to be a simple drop down of Contact Types to be a drop down with multiple check boxes or some other kind of column that lets me choose more than one selection. Then I want to keep as much of the databinding as possible, or do I have to manually code the back end hook up of the checking and recording of the checkboxes upon edit form submission?
Anybody have an example of this kind of usage with RadGrid? m2m mapping tables are a pretty common need.
Thanks in advance,
Rob