Re: [IronPython] data binding

2006-07-17 Thread zeleny
You have to save your my_DA somewhere. > dataConn = OleDbConnection('provider=microsoft.jet.oledb.4.0;data > source=cheeseshop.mdb ;') > cheese_sql = 'select * from cheese' > my_DA = OleDbDataAdapter(cheese_sql,dataConn) > my_DS = DataSet() > my_DA.Fill(my_dsDS,'ds_cheese') > my_BS = Forms.Binding

Re: [IronPython] data binding

2006-07-17 Thread zeleny
> So how do I propagate my changes back, then? Hmm. DataSet dataSet; DataAdapter adapter; // configuring the adapter adapter.Fill (dataSet, "table1"); dataGridView1.DataSource = dataSet; dataGridView1.DataMember = "table1"; // changes to the datagridview adapter.Update (dataSet, "table1"); __

Re: [IronPython] data binding

2006-07-17 Thread zeleny
> Assuming I have a reference to the specific control, how do I find the > related DataAdapter ? There is no way to find the DataAdapter... just because you can use more than one DataAdapter to fill the DataSet/DataTable, e.g while merging two databases or migrating or smth else. __