i am trying to clear datatable using clear datatable activity, its not working .
please help me out with this
              
              
              1 Like
            
            
          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
              
              
              2 Likes
            
            
          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()
              
              
              2 Likes