Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Trying to use a xamcombobox as a field editor.
posted
Hello, I am evaluating the Infragistics control suite and am having trouble trying to figure out how to get a combo box as the editor template for a column in the xamdatagrid. My scenario is this: I use LLBLGen Pro to generate my data layer. This reads Oracle's data dictionary to create classes and their related classes. Foreign key relations create classes for the related entity, with properties for the other side of the relation in place of the actual foreign key. For example there may be two related tables, employee and employee_title. employee_title would contain a list of valid employee title possibilities. The employee table would have a foreign key linking to the primary key of the employee title table. The code that generates my data classes would generate two classes: Employee and EmployeeTitle. The Employee class would have a property that is of type EmployeeTitle which contains all information for the EmployeeTitle object that has the primary key matching the Employee classes foreign key. In my ViewModel, I have a collection to all valid EmployeeTitles, which is used as the ItemsSource for a dropdown which is set to display the description. The datagrid DataSource is bound to a ListCollectionView of type Employee. I am trying to bind the EmployeeType column to the EmployeeTitle property of employee. When I edit the column, I want a combobox to appear with the ViewModels collection as the itemsource, and the selected value bound to the column. I haven't been able to figure out how to do this, and am looking for a simple example. Any help is appreciated. Thanks, Shaun