C
CJ Taylor
Alright, so this is strange. someone let me know if this is a *bug* or not.
Whenever I would use Dataset.Merge(datarows()) method, I would always get an
exception (IndexOutOfRangeException) on the currency manager after a paint
was fired on the datagrid controls.
Old code was
currMan.Suspendbinding()
oDataRows() = someFunctionThatReturnsArrayofDataRows(param)
myDataset.Merge(oDataRows)
currMan.Resumebinding
as soon as the procedure exists and the paint is invoked, get the index out
of range exception.
However, I replaced it with..
for i = 0 to oDataRows.Length -1
myDataSet.myTable.ImportRow(oDataRows(i))
next
flawless...
Ideas?
Whenever I would use Dataset.Merge(datarows()) method, I would always get an
exception (IndexOutOfRangeException) on the currency manager after a paint
was fired on the datagrid controls.
Old code was
currMan.Suspendbinding()
oDataRows() = someFunctionThatReturnsArrayofDataRows(param)
myDataset.Merge(oDataRows)
currMan.Resumebinding
as soon as the procedure exists and the paint is invoked, get the index out
of range exception.
However, I replaced it with..
for i = 0 to oDataRows.Length -1
myDataSet.myTable.ImportRow(oDataRows(i))
next
flawless...
Ideas?