Greetings:
AutoGenerateColumns produces no columns when the ItemsSource is set to a generic object list or collection. It seems that you generate the columns based on the type of the typed array/collection rather than the type of the objects within the collection.
The Integrated SilverLight GridView creates columns based upon the type of the objects within the list and does what i want - but of course it isn't near as cool as your gridview. I can see that there would be a failure if an empty generic list was passed though.
Questions:
* Could you modify your code to behave like the Silverlight GridView in this respect?
* More ideally - create a property that accepts a type that we supply and you AutoGenerate columns based upon that type.
* I'm using DynamicLinq to create ObservableCollection<object> collections, my types are dynamically generated and I would love to create ObservableCollection<RuntimeDynamicallyGeneratedClass> and supply that but I don't know how to do that at runtime, thus my generic collections.
Thanks in advance.
AutoGenerateColumns produces no columns when the ItemsSource is set to a generic object list or collection. It seems that you generate the columns based on the type of the typed array/collection rather than the type of the objects within the collection.
The Integrated SilverLight GridView creates columns based upon the type of the objects within the list and does what i want - but of course it isn't near as cool as your gridview. I can see that there would be a failure if an empty generic list was passed though.
Questions:
* Could you modify your code to behave like the Silverlight GridView in this respect?
* More ideally - create a property that accepts a type that we supply and you AutoGenerate columns based upon that type.
* I'm using DynamicLinq to create ObservableCollection<object> collections, my types are dynamically generated and I would love to create ObservableCollection<RuntimeDynamicallyGeneratedClass> and supply that but I don't know how to do that at runtime, thus my generic collections.
Thanks in advance.