Why does Dataset.table(n).clear take so long?

I need to refresh my dataset when external changes have been made.

To do this I first clear the datatable from the datasetusing the following code:

dsDataSet.Tables("Customer").Clear

This sinlge line of code can take between 1 and two minutes to run even though the table has only 1354 rows in it..............WHY

Can anyone shed any light on this or advise me of another way to do this


Answer this question

Why does Dataset.table(n).clear take so long?

  • re10

    Cheers Bloke, you really are a star !!

    I'd never even come across the merge method before - what a simple and effective idea !!

  • Russell Lanning

    Thats a strange one.  When updating data like that I use the DataSet.Merge method.  It stops DataGrids, ListBoxes etc from flickering.
  • Why does Dataset.table(n).clear take so long?