Not Monitored
Tag not monitored by Microsoft.
27,024 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All.
I'm trying to populate combobox. That is my code:
MyDataSet MyDataSet = new MyDataSet();
MyDataSetTableAdapters.DepartmentTableAdapter DepartmentTableAdapter = new MyDataSetTableAdapters.DepartmentTableAdapter();
BindingListCollectionView cvDepartment;
DepartmentTableAdapter.Fill(MyDataSet.Department, 0);
cvDepartment = CollectionViewSource.GetDefaultView(MyDataSet.Department);
DepartmentComboBox.ItemsSource = cvDepartment;
What is wrong in populate combobox?
Thanks.