I have this object:
class a
{
public string Application;
public DateTime From, To;
}
And I declare this list
Check this article - http://www.codeproject.com/KB/miscctrl/GridView_WPF.aspx I think you are missing the ItemsSource= directive.
Looks like WPF can't bind to fields directly, you have to use properties like so:
class a
{
public string Application { get; set; }
public DateTime From { get; set; }
public DateTime To { get; set; }
}
Ok you use fields but you need properties
class a
{
public string Application
{
get;set;
}
public DateTime From
{
get;set;
}
public DateTime To
{
get;set;
}
}