DataGrid datasource with different objects

  • Thread starter Thread starter Al
  • Start date Start date
A

Al

Hi!

I need to bind datagrid with my collection that contains
objects of two different types.

Can I do this?

Thanks.
 
Hi,

I'm afraid this is not possible - the grid considers the first item in the
collection to be the type determiner and then assumes that the rest of the
items have the same type. I think you can cheat it by having object with
just the same public property names but it's a rigid and dishonest solution.
 
Back
Top