i want to bind same data in different comboboxes
hii friends i have 10 comboboxes and in every comboboxes i want employee name from employee table i am facing problem that i have to create 10 methods for 10 comboboxes plzz help me so that i can do it in efficiant way
Shen HengbinPosted Jul 20, 2012, 5:05 AM
you can retrieve all data into your DataTable.
and use
DataView dv1 = datatable.DefaultView.RowFilter = "kind = 1"; Bind to your first combobox
DataView dv2 = datatable.DefaultView.RowFilter = "kind = 2"; Bind to your second combobox
... ...