[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=
cheese_sql = 'select * from cheese'
my_DA = OleDbDataAdapter(cheese_sql,dataConn)
my_DS = DataSet()
my_BS = Forms.BindingSource(DataSource=my_DS.Tables['cheese'])

def saveChanges(self,sender,event):
    # now what?

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