J
JamesT
Is there an easy way of clearing one datatable in a dataset and hence the
database table to no records?
I have a large dataset that contains many datatables. Most of the datatables
are updated using linked forms but a couple are not updated using forms as
the data they contain is too variable. I would like to clear the datatable
and then insert new records from scratch from classes I have defined. I
cannot find a method to clear the datatable except row by row. Inserting the
new data and updating the database I can do OK. Have I missed something? If
you supply any code could it be in VB.NET please.
database table to no records?
I have a large dataset that contains many datatables. Most of the datatables
are updated using linked forms but a couple are not updated using forms as
the data they contain is too variable. I would like to clear the datatable
and then insert new records from scratch from classes I have defined. I
cannot find a method to clear the datatable except row by row. Inserting the
new data and updating the database I can do OK. Have I missed something? If
you supply any code could it be in VB.NET please.