• Hello and welcome to our new forums. We upgraded our forum sites to a more robust and modern system which we hope you will enjoy. Be sure to check out your profile by clicking the button on the top right and configure your preferences, signature, time zone, avatar, etc. as you wish. If you need help with using this new forum'ware try the help link on the bottom right.

    Click here to review your account now.

Fastest Fill and Display for DataGridView

HLeyes

Member
Joined
Feb 10, 2016
Messages
11
Programming Experience
10+
I am using VS 2015 with C#, and I am binding a DataGridView with a list from a SQL Server database. There are only a half-dozen records, but the grid still seems to display and show those records "sluggishly". My laptop has a lot of power, so I don't think that's the issue.

Is there any particular way to fill and display a DataGridView so that it shows the quickest way possible?

Thanks for recommendations in advance!

HL
Fort Myers, FL
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
2,166
Location
Sydney, Australia
Programming Experience
10+
Binding a DataTable should not be considered slow. Either you're doing something wrong or there's something wrong with your project or system. To rule out the first possibility, show us what you're actually doing. Also, tell us how long it actually takes. Use a Stopwatch to time it so that you are talking quantitatively rather than qualitatively.
 
Top Bottom