A co-worker was doing something similar, where the grid shows different
results in different situations. looping through the dataview columns and
adding datagrid columns. It turned out to be an easier solution to let the
datagrid do it with autogeneratecolumns = true. You might have to hide
certain fields, but that will probably be easier than hard-coding the columns
by hand.
John
"Bad_Kid" wrote:
How can I dynamicly create a datagrid?
(first I read a datatable from a database, see how many atributes does it
have (n) and then build a datagrid with n columns...)???
(c#, asp.net)