I am currently working on a web application. I was just wondering which has a better performance when used as a DataSource for say a DataGridView or a DropDownList control.
I believe that DataTable is harder to create unless you get it from a DataReader but if you have a ORM layer that abstract the use of DataAccess classes like DataReader and the ORM library usually returns an array list. With this case creating a DataTable is very tedious. I am wondering also how the DataSource handles the selecting of DataTextField and DataValueField in an ArrayList... Is it via reflection? If so using Reflection would be a performance decrease? But for DataTable, it has a complete meta-data so I think it would be faster.
What do you think?