K
Kevin Lawrence
Hi all
I have 2 classes derived from Person - they are Employee and Customer, Person
class contains FirstName and LastName properties.
However, when I have an array of Person and try to bind to a GridView it
fails, it's fine with the first object it hits but then if the next object
is o f a different class it fails.
Is what I am trying to achieve not possible because they are 2 different
classes - even though they are cast as their parent class?
Thanks
Kev
I have 2 classes derived from Person - they are Employee and Customer, Person
class contains FirstName and LastName properties.
However, when I have an array of Person and try to bind to a GridView it
fails, it's fine with the first object it hits but then if the next object
is o f a different class it fails.
Is what I am trying to achieve not possible because they are 2 different
classes - even though they are cast as their parent class?
Thanks
Kev