I have a WPF project in which I wanted to display some data in a Datagrid. I have a class which is given below.
public class Demo
{
public string ColunmHeader{ get; set; }
private List<string> values = new List<string>();
}
I have List which I need to bind to Datagrid columns. The ColunmHeader property should be the name of datagrid column and the List of values should be shown under the column header. How can I bind the List Values to datagrid columns?
values
in a single column? - DennisDataGrid
with a single column? Why don't displayvalues
in aListBox
? - Dennis