Hello
I have a RadGridview, one of those columns is a GridViewComboBoxColumn
The RadGridView is bound to the Employees ( with a nice MVVM implementation), Employees has many fields like EmployeeID, Name, Address, Phone, etc and there are columns on the RadGridView for them.. one of those columns is a ComboBox to allow the selection of manager for each employee. The manager is also an employee, therefore the ManagerColumnComboBox is populated with Employee table.
I am able to populate the GridViewComboBoxColumn with Employees data, but I need to exclude “self-employee” from the collection, because obviously the employee cannot be his/her own manager. so there is only one table involved, the Employee data populates the RadGridView and also the populates the ManagerComboBoxColum in inside that RadGridView.
I have tried may approaches, with no luck.
Let say I have 20 Employees , only 19 of them can be his/her manager, all but him/her self.
How can I populate the ComboBox column for the data grid with the Candidate managers (excluding the current employee on each row).
Sorry for the long explanation, but I think is necessary
Thanks
:)
I have a RadGridview, one of those columns is a GridViewComboBoxColumn
<
telerik:GridViewComboBoxColumn
Header
=
"Manager"
SelectedValueMemberPath
=
"EmployeeId"
DataMemberBinding
=
"{Binding ManagerEmployeeId, Mode=TwoWay}"
DisplayMemberPath
=
"Name"
UniqueName
=
"Manager"
/>
The RadGridView is bound to the Employees ( with a nice MVVM implementation), Employees has many fields like EmployeeID, Name, Address, Phone, etc and there are columns on the RadGridView for them.. one of those columns is a ComboBox to allow the selection of manager for each employee. The manager is also an employee, therefore the ManagerColumnComboBox is populated with Employee table.
I am able to populate the GridViewComboBoxColumn with Employees data, but I need to exclude “self-employee” from the collection, because obviously the employee cannot be his/her own manager. so there is only one table involved, the Employee data populates the RadGridView and also the populates the ManagerComboBoxColum in inside that RadGridView.
I have tried may approaches, with no luck.
Let say I have 20 Employees , only 19 of them can be his/her manager, all but him/her self.
How can I populate the ComboBox column for the data grid with the Candidate managers (excluding the current employee on each row).
Sorry for the long explanation, but I think is necessary
Thanks
:)