wpf datagrid combobox column
问题 I have trouble reading the field. I have tried in different ways but still can not. I want to read the value that the user selected the following 3 values. Code in XAML <DataGridComboBoxColumn X:Name="dgcbc" Header="Wynik"/> Code in C # List<string> list = new List <string> (); lista.Add ("Prize"); lista.Add ("Draw"); lista.Add ("Lost"); dgcbc.ItemsSource = list; 回答1: This sample might help you in understanding how listbox can be used. public class Employee { public string Name { get; set; }