vb.net - How to Access DataTable Information Filled By a Module From a Form -


i have dataset named billmat.xsd

billmat dataset

when application loads, module fills dataset's datatable datatable correct information.

my question ... how can access datatable's filled information form?


here's how tried access on 1 of forms:

dim view new dataview view.table = billmat.tables("dtbillheader") 

but following error:

non shared

if create new instance of dataset , store in variable, i'll able rid of error message rid of data in dataset's datatables ... there way access datatable's information form?

you need fix both forms referencing same dataset or datatable object. if 1 "child" form of other, such dialog, can pass parent child via property. otherwise, ideally, same data object injected both forms third object created both of forms. short of that, create singleton or global variable, please don't!


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -