Hi,
I meet a performance problem when I try to add a large number of rows into my unbound grid. In fact I've got a loop where each time I insert a row into the grid's DataRowCollection (Rows):
for (i=0; i<60000; i++)
{
myTrueDbGrid.Rows.Add(myTrueDbGrid.newRow());
}
The same problem appends with this method : myTrueDbGrid.AddRows(60000);
This operation take more than 10 minutes to success. I don't understand why because for the moment i just insert an empty row (newRow()).
Can you help me to improve this operation's performance. Thanks!
Ok I solve this problem suspending the binding before my loop and resume it after
myTrueDbGrid.SuspendLayout();
myTrueDbGrid.ResumeLayout();