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
Post a Comment