2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 30 Sep 2005 04:37:22 +0000 (04:37 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 30 Sep 2005 04:37:22 +0000 (04:37 -0000)
commit591e5b3436f55a237c0899f43d8a229d472e0f43
tree06f27184bd4af1ea82832550c11dc691b2c48cee
parent70f5f81c08074e2874c2bd91c797be8ffea31660
2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* DataGrid.cs: when paging is enable, the actual number of items is not
the number of items rendered before the postback, but that number times
the number of pages. Now we store the page count in the viewstate. Also,
as the number might be big, don't allocate an array of objects to fake
the collection for the PagedDataSource, but use the new NCollection
class instead, which provides cheap (memory wise) enumerator for an
arbitrary number of items. Thanks to "Adriano" for the test case.

svn path=/trunk/mcs/; revision=51027
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs