Given databinding an array of System.Version types:
Given that "SomeObject" type has a Version property:
public class SomeObject
{
public Version Version { get; }
public string Description { get; }
}
and I want to bind a list of them to a datagrid.
DataGrid1.DataSource = someObjectList; // basically an array of "someobject"
DataGrid1.DataBind();
How does one utilize the DataBinder.Eval (and in asp.net v2.0, the Eval
method) to get to the SomeObject.Version.Major property?
(Assuming ALL that other stuff is Syntax proper, and so forth)
--
Eric Newton
eric.at.ensoft-software.com
www.ensoft-software.com
C#/ASP.net Solutions developer