Bind List to DataGrid Bind List to DataGrid wpf wpf

Bind List to DataGrid


Change this:

public struct SomeInfo{    public string Name;    public string Description;    public string ID;}

to this:

public class SomeInfo{    public string Name {get;set;}    public string Description {get;set;}    public string ID {get;set;}}

WPF does not support binding to fields. Only properties. And a struct is not an appropiate type for the data you're trying to represent.