C
crain
hi i am just trying to learn all aspects of binding
my sample code
DataSet ds = new DataSet();
DataTable cust = new DataTable ("Cust");
DataColumn custid = new DataColumn ("custid",typeof(int));
DataColumn custname = new DataColumn ("custname",typeof(string));
ds.Tables.Add(cust);
cust.Columns.Add(custid);
cust.Columns.Add(custname);
DataRow dr ;
dr= cust.NewRow();
dr["custid"]=1;
dr["custname"]="sheraze";
cust.Rows.Add(dr);
dr = null;
dr= cust.NewRow();
dr["custid"]=2;
dr["custname"]="juzan";
cust.Rows.Add(dr);
tx.DataBindings.Add( new Binding ("Text",ds,"cust.custid"));
textBox2.DataBindings.Add(new Binding ("Text",ds,"cust.custname"));
bmCustomers = this.BindingContext [ds, "cust"];
now,
bmCustomers.ToString() gives
"System.Windows.Forms.RelatedCurrencyManager"
in what senarios can i use currencymanager and propertymanager?
thanx
my sample code
DataSet ds = new DataSet();
DataTable cust = new DataTable ("Cust");
DataColumn custid = new DataColumn ("custid",typeof(int));
DataColumn custname = new DataColumn ("custname",typeof(string));
ds.Tables.Add(cust);
cust.Columns.Add(custid);
cust.Columns.Add(custname);
DataRow dr ;
dr= cust.NewRow();
dr["custid"]=1;
dr["custname"]="sheraze";
cust.Rows.Add(dr);
dr = null;
dr= cust.NewRow();
dr["custid"]=2;
dr["custname"]="juzan";
cust.Rows.Add(dr);
tx.DataBindings.Add( new Binding ("Text",ds,"cust.custid"));
textBox2.DataBindings.Add(new Binding ("Text",ds,"cust.custname"));
bmCustomers = this.BindingContext [ds, "cust"];
now,
bmCustomers.ToString() gives
"System.Windows.Forms.RelatedCurrencyManager"
in what senarios can i use currencymanager and propertymanager?
thanx