Hi, All!
I have the following code:
DataRow newDataRow;
for (int i = 1; i <= count; i++)
{
newDataRow = table.NewRow();
newDataRow["FLD_START_TIME"] = interval.start;
newDataRow["FLD_END_TIME"] = interval.finish;
newDataRow["VALUE"] = metricData.val;
newDataRow["METRIC_APP"] = metricData.appValue;
newDataRow["METRIC_MAX"] = metricData.maxValue;
newDataRow["METRIC_MIN"] = metricData.minValue;
newDataRow["METRIC_STATUS"] = metricData.metricStatus;
table.Rows.Add(newDataRow);
}
As you can see it adds "count" records into DataTable. But when the
"count" is big (100 or more) it takes some seconds to add this rows. How can
I decrease performance time of this operation?
Thanks a lot