clear content of a datagrid ?

  • Thread starter Thread starter aikwee
  • Start date Start date
A

aikwee

how, how do i clear the current content of a datagrid?

I am using datagrid to do a xml editor, so every time
i try to open anther file and load it to datagrid, it
actually append it in to previous contents...

please advice...
 
try this though I am not sure on your XML portion.

Dataset1.Clear
dataset1.AcceptChanges
OledbDataAdapter1.Fill
and bind to the grid in your usual way.
 
yes it works....thanks so much...
scorpion53061 said:
try this though I am not sure on your XML portion.

Dataset1.Clear
dataset1.AcceptChanges
OledbDataAdapter1.Fill
and bind to the grid in your usual way.
 
Back
Top