Jarod,
Are you only going to bind to one object in the List at a time? If not,
then you would have to find ALL of the properties of ALL of the hashtables
and then flatten the structure.
You should also have your objects (if you are binding to them in the
GridView) implement ICustomTypeDescriptor. This way, you can indicate what
columns you want shown. It's a little work to do, but you have to do this
in order provide custom metadata.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Jarod" <bl*****@NOSPAM.gazeta.pl> wrote in message
news:uS**************@TK2MSFTNGP04.phx.gbl...
Hey
I have List<myObjects> and each myObject has property with HashTable. And
I want to bind it to GridView. Each item in HastTable is a column in
gridView but it will change in time so this one it will have 5 columns,
next 3 , next 7. So I need to automatically create columns in gridView
depending on HashTable. Can you tell me best way to do this ? [If you have
better idea than hashTable please share].
Jarod