I have created the class DisplayTable, which was mentioned below.
DisplayTable
I have also created one list to add the contents of the class to the list.
I pushe
DataGrid generates columns automatically only for properties, because each column creates a binding and WPF bindings require properties. DisplayTable class declares fields.
instead of
public int AnalyteId;
make
public int AnalyteId { get; set; }
and fix other data members in the same way