[IronPython] data binding

zeleny zeleny02 at gmail.com
Mon Jul 17 23:14:29 CEST 2006


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.BindingSource(DataSource=my_DS.Tables['cheese'])
>
> def saveChanges(self,sender,event):
>     # now what?
>     #sender.?????.?????.Update()
>    
> dgv = DataGridView(AutoGenerateColumns = True,DataSource = my_BS)
> dgv.DoubleClick += saveChanges
>



More information about the Ironpython-users mailing list