csharpequalsjava
October 26th, 2009, 03:24 PM
I want to display data from a DataSet i have created in visual studio in a dataViewGrid.
I want to read data into the DataSet in tables from an XML file at runtime, and to be able to access the dataset from various different forms/classes.
I have tried to create an instance of the typed dataset i have created, but i cant find a way of accessing it unless its declared in the same class. I want only one instance of the dataset to maintain the data integrity, so passing multiple instances of the dataset to classes as params is not acceptable.
I have tried created an instance of the dataset in one class, and accessing it from another class using the someClass.dataset syntax to no avail.
How can i get around this problem of my dataset not existing in the context i want to use it?
Any help.... PLEASE!
I want to read data into the DataSet in tables from an XML file at runtime, and to be able to access the dataset from various different forms/classes.
I have tried to create an instance of the typed dataset i have created, but i cant find a way of accessing it unless its declared in the same class. I want only one instance of the dataset to maintain the data integrity, so passing multiple instances of the dataset to classes as params is not acceptable.
I have tried created an instance of the dataset in one class, and accessing it from another class using the someClass.dataset syntax to no avail.
How can i get around this problem of my dataset not existing in the context i want to use it?
Any help.... PLEASE!