Vb.Net Dataset table = New DataTable -


i came across 1 programming issue have tried solve follows:

dsdataset.tables("promotion") = new datatable. 

but unfortunately not work because error: property 'item' read only

is there away accomplish this?

the tables collection of dataset modified using add, remove methods

dsdataset.tables.add(new datatable("promotion")) 

of course, line above requires collection doesnt contain table named "promotion". if have table named "promotion" in dataset need remove before adding new one

dsdataset.tables.remove("promotion") dsdataset.tables.add(new datatable("promotion")) 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -