7
在WPF DataGrid中绑定ComboBoxColumn的ItemsSource
我有两个简单的Model类和一个ViewModel ... public class GridItem { public string Name { get; set; } public int CompanyID { get; set; } } public class CompanyItem { public int ID { get; set; } public string Name { get; set; } } public class ViewModel { public ViewModel() { GridItems = new …