DNP,
Is this an ASP.NET project? If so, then you can data bind to a data
reader. If this is a Windows Forms project, then placing the items into a
list and binding to that makes sense. I've seen people use data readers to
get data and place them into custom objects because they don't want the
overhead of a DataTable/DataSet or because they prefer to use business
objects.
As far as passing a data set to a data table, that doesn't make much
sense. Can you clarify?
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"dotComPaJi" <in**@t.comwrote in message
news:eS**************@TK2MSFTNGP05.phx.gbl...
>I have recently joined a company and while looking at the source code I did
find the following:
They were accessing data from database using dataReader and after that
passing it to List Class.
then accessing that data ( i,.e in List Box, dataGrid etc)
I was thinking that there is no need to pass it to List Class. Any
suggestions would be appreciated.
Also they were doing the same with dataSet..passing it to datatable.
Thanks
DNP