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
Post a Comment