>using System; >using System.Data; > >public class MyLocalData >{ > private static DataTable _DtCustomers; > public static DataTable DtCustomers > { > get {return _DtCustomers ;} > set {_DtCustomers = value;} > } > > // if you need to utilize a binding manager, or other data, you could add it here >} >>
>MyLocalData.DtCustomers = oBusinessLayer.RetrieveCustomers();
>DataRow Dr = MyLocalData.DtCustomers.NewRow();
>Dr["FirstName"] = "JOHN";
>MyLocalData.DtCustomers.Rows.Add(Dr);
>
>>dataGrid1.DataSource = MyLocalData.DtCustomers; >