i am trying to clear datatable using clear datatable activity, its not working .
please help me out with this
The easiest way would be to use the Clear Data Table activity.
You can also use an assign and re-initialize the DT that you want like below:
yourDT= New System.Data.DataTable
1 Like
if clearing means keep structure and remove rows - then:
yourDT = yourDT.Clone
if clearing means reset it to null
yourDT = nothing
if clearing means reset it to initialized form, that it can bused for further work
yourDT = new DataTable()
1 Like