Map.ListToDataReader

22 views
Skip to first unread message

patrick....@gmail.com

unread,
Mar 26, 2013, 11:31:35 PM3/26/13
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
Reply all
Reply to author
Forward
0 new messages