M
Mark
A class correctly implementing the IEnumerable interface can be bound to a
DataGrid or similar.
Let's say you have a class called Person, and it has fields like FirstName,
LastName and DateOfBirth, which are exposed as public properties. You
create a strongly typed collection class of Person objects that implements
the IEnumerable interface.
When you bind the collection class implementing IEnumeralbe to the DataGrid,
what events/methods/properties/whatever allow the DataGrid to know that it
should display the FirstName, LastName and DateOfBirth values from each
Person object in the DataGrid?
Thanks in advance.
Mark
DataGrid or similar.
Let's say you have a class called Person, and it has fields like FirstName,
LastName and DateOfBirth, which are exposed as public properties. You
create a strongly typed collection class of Person objects that implements
the IEnumerable interface.
When you bind the collection class implementing IEnumeralbe to the DataGrid,
what events/methods/properties/whatever allow the DataGrid to know that it
should display the FirstName, LastName and DateOfBirth values from each
Person object in the DataGrid?
Thanks in advance.
Mark