T
Tony Girgenti
Hello.
Working on a VS2005 SP1 Windows form program in .NET 2.0, on XP Pro, SP2.
I have a datatable with no keys and just three columns.
How do you clear a datatable to no rows ?
I tried :
itemsDataTable.Clear()
itemsDataTable.AcceptChanges()
itemsDataTable.Rows.Clear()
itemsDataTable.AcceptChanges()
I can load data into it it, but cannot clear it.
Searching the internet shows it as that simple.
Any help would be gratefully appreciated.
Thanks,
Tony
Working on a VS2005 SP1 Windows form program in .NET 2.0, on XP Pro, SP2.
I have a datatable with no keys and just three columns.
How do you clear a datatable to no rows ?
I tried :
itemsDataTable.Clear()
itemsDataTable.AcceptChanges()
itemsDataTable.Rows.Clear()
itemsDataTable.AcceptChanges()
I can load data into it it, but cannot clear it.
Searching the internet shows it as that simple.
Any help would be gratefully appreciated.
Thanks,
Tony