Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 348557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:22:33+00:00 2026-05-12T11:22:33+00:00

I am currently working on a web application. I was just wondering which has

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:22:33+00:00Added an answer on May 12, 2026 at 11:22 am

    A List (which I hope you’d use instead of an ArrayList) is a lighter-weight structure than a DataTable. If your ORM returns an ArrayList, then it doesn’t make much sense to convert it to a DataTable and then use that DataTable as the DataSource for a control. This is extra work; in general, I would use a DataTable (filled up by a DataAdapter) or I would use an ORM, but not both together. Although the DataTable is “heavier” than an ArrayList, I doubt the difference is all that significant.

    I do not think the DataSource of a grid or other control uses Reflection for either a DataTable or an ArrayList, and if it does, Reflection is probably not used on a row-by-row basis.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a Rails web application, and it's currently being used by some
Currently, I have a ASP.net 3.5 web application for which I currently am working
I am currently working on an web application that uses ASP.NET 2.0 framework. I
I am currently working on a web application that uses PHP and MySQL, but
I am currently working on converting an existing web application to support an additional
In the application I'm working on porting to the web, we currently dynamically access
I'm working on a Python web application in which I have some small modules
i am currently working on a web application that needs to accept video uploaded
I'm currently working on an Web Application similar to Steamworks (if you don't know
I'm currently working on a big web application for a company and we are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.