M
Matthew Wieder
I'm finding that the AddRange call in the following code takes several
seconds to execute (approx. 4 seconds).
DataColumn[] adcCols = new DataColumn[3000];
for (int i=0; i<adcCols.Length; i++)
{
adcCols = new DataColumn();
}
myDataTable.Columns.AddRange(adcCols);
Is there some way for me to speed this up? I tried using
myDataTable.BeginLoadData and EndLoadData but it didn't help any. The
end goal is adding 3000 columns to an existing datatable, so if there is
some other way to do that, please let me know.
thanks!
seconds to execute (approx. 4 seconds).
DataColumn[] adcCols = new DataColumn[3000];
for (int i=0; i<adcCols.Length; i++)
{
adcCols = new DataColumn();
}
myDataTable.Columns.AddRange(adcCols);
Is there some way for me to speed this up? I tried using
myDataTable.BeginLoadData and EndLoadData but it didn't help any. The
end goal is adding 3000 columns to an existing datatable, so if there is
some other way to do that, please let me know.
thanks!