I am working on a project currently where I need to be able to bind a combobox column to a list of classes, and I am unable to get the data to display. I had this working in Winforms but for the life of me, I can't get it to work in WPF.
Here is what I have so far.
In the class
Any ideas/help would be much appreciated.
Thanks!
Erik Van Norstrand
Here is what I have so far.
List<OrganizationNameType> orgTypeList = new List<OrganizationNameType>(); orgTypeList = hub.OrganizationNameType.ToList(); Telerik.Windows.Controls.GridViewComboBoxColumn gvc = new Telerik.Windows.Controls.GridViewComboBoxColumn(); gvc.Header = "New Data Types"; gvc.ItemsSource = orgTypeList; gvc.DisplayMemberPath = "TypeName"; gvc.SelectedValueMemberPath = "TypeName";In the class
OrganizationNameType I am trying to recover the variable "TypeName" of each OrganizationNameType and have it displayed as a column in my RadGrid. Any ideas/help would be much appreciated.
Thanks!
Erik Van Norstrand