sql - combobox items connect to column table in C# winforms -


i have form:"emloyees" combobox1. have table "city". when add emloyee "emloyees" table open combobox1 cities have , choose one. if in table city add city, want when try add emloyee when open combobox1 there city add. want connection between table city , combobox1 in form

you need make sql query employee , can display in combobox

i have similar project know

its that

  citycomboboxemp.datasource = cityshow.usesqlcommand("select * city").tables[0]; 

cityshow use class that's runing sql commands


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -