E
ER
Hi All
I have a ComboBox that is bound to a DataTable returned from a Business
Logic Component.
How to I insert a new ComboBoxItem after binding.
My Code so Far:
StockItemDepartmentBLLC s = new StockItemDepartmentBLLC();
cmbDepartment.DataContext = s.GetDepartmentsForDDL(); //returns a DataTable
ComboBoxItem item = new ComboBoxItem();
item.Content = "All Departments";
cmbDepartment.Items.Insert(0, item);
Any pointers greatly appreciated.
Evil R
I have a ComboBox that is bound to a DataTable returned from a Business
Logic Component.
How to I insert a new ComboBoxItem after binding.
My Code so Far:
StockItemDepartmentBLLC s = new StockItemDepartmentBLLC();
cmbDepartment.DataContext = s.GetDepartmentsForDDL(); //returns a DataTable
ComboBoxItem item = new ComboBoxItem();
item.Content = "All Departments";
cmbDepartment.Items.Insert(0, item);
Any pointers greatly appreciated.
Evil R