المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : DataGridView add row performance



C# Programming
07-10-2009, 11:00 PM
Something I just discovered is that adding rows goes much faster if a sort has been applied first (setting the SortedColumn and SortOrder properties). I commented out those lines to see if they were needed for something else, and an (excessively) large set of input data I was using for performance/stress testing went from taking 25sec to load to over 200 sec.

Does anyone know *why* this is happening?

The European Way of War: Blow your own continent up.
The American Way of War: Go over and help them.