public class DataAccessXml { public static DataSet Cattleds ; public void Createcattleds ; { this.Cattleds = new DataSet() ; this.Cattleds.ReadXml("\\Program Files\\Mobile\\Cattle.xml") ; } }Then, populate the DataSet in your main form the same as you have already done. But now when you need to access the DataSet, since it is static all you need to do is:
private DataTable CattleDt // You can comment out this line, you won't need it. //DataAccessXml CattleClass = new DataAccessXml() ; this.CattleDt = CattleClass.Cattleds.Tables[0] ; this.dataGrid1.DataSource = this.CattleDt ; this.dataGrid1.Refresh() ;~~Bonnie