Repopulating a DataGrid with a different Dataset

  • Thread starter Thread starter wenz
  • Start date Start date
W

wenz

Hi,
I have a small application that reads data from a text, access or excel file
and displays it in a DataGrid.

I have a problem when a second request to display a file is made in that the
columns in the datagrid display both the column headings from the original
file and the new file.

I have tried .clear, setting the datasource to null prior to the second
request, even disposing of the datagrid and creating a new one but the
problem still occurs.

Does anyone know how I can fix this?

Many thanks
wend
 
Errrr .. I meant, DataSET.Reset. That will reset the entire structure as
well as clear the contents.
 
Back
Top