Using combo boxes with a binding source and multiple tables

Posted by Scott Chamberlain on Stack Overflow See other posts from Stack Overflow or by Scott Chamberlain
Published on 2010-05-03T15:23:34Z Indexed on 2010/05/03 15:28 UTC
Read the original article Hit count: 217

Filed under:
|
|
|

I have two data tables in a data set for example lets say

Servers:
| Server | Ip |

Users:
| Username | Password | ServerToConnectTo |

and there is a foreign key on users that points to servers.

How do I make a combo box that list all of the servers. Then how do I make the selected server in that combo box be saved in the data set in the ServerToConnect to column.

© Stack Overflow or respective owner

Related posts about winforms

Related posts about c#