E
Eric Petruzzelli
If I fill my dataset and there is no data. The dataset is still created
with zero rows (all columns are there). When I add my first row using
the script below, it takes over 2 seconds to add??? If I add the second
row, instant.
How can I eliminate this delay?
Dim oRow As DataRow = dsOrder.Tables("PaymentsAndCredits").NewRow
oRow("ENumber") = ENumber
oRow("CNumber") = CNumber
oRow("PType") = type
oRow("PAmount") = amount
oRow("TNumber") = 0
oRow("TAdjustment") = 0
oRow("Applied") = False
dsOrder.Tables("PaymentsAndCredits").Rows.Add(oRow)
with zero rows (all columns are there). When I add my first row using
the script below, it takes over 2 seconds to add??? If I add the second
row, instant.
How can I eliminate this delay?
Dim oRow As DataRow = dsOrder.Tables("PaymentsAndCredits").NewRow
oRow("ENumber") = ENumber
oRow("CNumber") = CNumber
oRow("PType") = type
oRow("PAmount") = amount
oRow("TNumber") = 0
oRow("TAdjustment") = 0
oRow("Applied") = False
dsOrder.Tables("PaymentsAndCredits").Rows.Add(oRow)