Posted 8 September 2017, 11:01 am EST
Hello,
I have a question about loading data. The table is with 30 columns and 757 rows and it takes more than 1 minutes to done.
Here is the code:
Dim ds As DataSet = New DataSet
ds = cls.GetDataSet(strSQL)
FpSpread1.Sheets(0).Rows.Count += TableDetail.Tables(0).Rows.Count
For intRowCount = intPreCount To intPreCount + ds.Tables(0).Rows.Count - 1
For intColCount = 0 To ds.Tables(0).Columns.Count - 1
FpSpread1.Sheets(0).Cells(intRowCount, intColCount).Value = ds.Tables(0).Rows(intRowCount - intPreCount).Item(intColCount)
Next
Next
Is any suggesions to speed up? Thanks.