[IronPython] data binding

jeff sacksteder jsacksteder at gmail.com
Mon Jul 17 23:09:29 CEST 2006


Let me show a more specific example. How does the saveChanges method find a
reference to the correct DataAdapter to call Update() upon?

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060717/e4cb4112/attachment.html>


More information about the Ironpython-users mailing list