dabo Commit
Revision 5132
Date: 2009-03-15 12:31:16 -0700 (Sun, 15 Mar 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5132

Changed:
U   trunk/dabo/ui/uiwx/dGrid.py

Log:
The recent change to remove syncing from refresh() meant that setting the 
DataSet property left the grid out of sync. This fixes that problem, which was 
the cause of Trac issue #1224.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2009-03-15 17:35:36 UTC (rev 5131)
+++ trunk/dabo/ui/uiwx/dGrid.py 2009-03-15 19:31:16 UTC (rev 5132)
@@ -1906,11 +1906,13 @@
                self._syncColumnCount()
                self._syncCurrentRow()
 
+
        def refresh(self):
                """Repaint the grid."""
                self._Table._clearCache()  ## Make sure the proper values are 
filled into the cells
                super(dGrid, self).refresh()
 
+
        def _refreshHeader(self):
                self._getWxHeader().Refresh()
 
@@ -3984,6 +3986,7 @@
                                val = dabo.db.dDataSet(val)
                        self._dataSet = val
                        self.fillGrid()
+                       self._syncAll()
                        dabo.ui.callAfter(self.refresh)
                        if self.getBizobj():
                                self.Form.bindEvent(dEvents.RowNumChanged, 
self.__onRowNumChanged)



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to