patrick....@gmail.com
unread,Mar 26, 2013, 11:31:35 PM3/26/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blto...@googlegroups.com
Hi,
I know we can Map.DataReaderToList using BLToolKit, but I would like to do the reverse Map.ListToDataReader.
The reason is I have large amounts of data inside the list, and I need to bind this to a Grid, I am currently using an ObjectDataSource and datatable (Map.ListToDataTable).
But I don't want to run into memory issues later on, so if possible I want to make the List<T> into a DataReader and make the Grids data source the datareader.
The reason I cannot use the List to the Grid, it seems the Grid cannot get the columns names from the List, otherwise I would use the List.
The Grid cannot find he KeyFieldName when I use a List.
Thanks.
Regards,
Patrick