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
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Shen Hengbin94 reputationPosted Jul 20, 2012, 1:05 AM EDT
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
... ...