Adding a GridViewRowCollection to the asp.net GridView

Posted by CoffeeCode on Stack Overflow See other posts from Stack Overflow or by CoffeeCode
Published on 2010-06-08T09:22:58Z Indexed on 2010/06/08 9:32 UTC
Read the original article Hit count: 307

i have a record of a gridviewrowcollection. and i'm having issues with adding them to the grid.

GridViewRowCollection dr = new GridViewRowCollection(list);
StatisticsGrid.DataSource = dr;

doesnt work.

StatisticsGrid.Rows

does have an add method, what is strange

how can i add a gridviewrowcollection without creating a datatable + binding it to the datasource??

thanks in advance

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gridview