This is probably an odd question but here I go (do let me know if this is a bad database design or just a weird situation I'm in).
I have two tables in my database: ProductGroup and Parameters. One contains information about various product groups as per its name and the other one contains information about various parameters that can be applied to each group (and thus make each group different).
Now to relate the two tables, there's a third table set up - GroupParameters with two primary keys: parameterId and groupId and third column being the value for the parameter for this group.
Now I have a screen that displays information about each group and its parameter values. The users should be able to edit these values also. Thus my question is how do I bind this Value (stored in the third table) to a textbox. And in general how would I bind a control in this situation.
Thanks guys!
EDIT: There's an important detail that I have left out. I want to use DataSet and DataTable objects to store the in-memory data from the database and also bind them to the controls. The reason for this is unrelated to the problem but it has to do with me having to track changes and be able to undo them at users' will :(