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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -