dabo Commit
Revision 6632
Date: 2011-06-17 17:42:24 -0700 (Fri, 17 Jun 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6632
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
If I leave my sort order on customer_name but seek() to the last order number
in my bizobj before instantiating the grid, the grid sorts correctly but the
record pointer stays on the last record. Fixed with setAfter().
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2011-06-17 23:59:01 UTC (rev 6631)
+++ trunk/dabo/ui/uiwx/dGrid.py 2011-06-18 00:42:24 UTC (rev 6632)
@@ -2938,7 +2938,7 @@
self._settingDataSetFromSort = False
if biz:
- self.CurrentRow = biz.RowNumber
+ dabo.ui.setAfter(self, "CurrentRow", biz.RowNumber)
if self._refreshAfterSort:
self.refresh()
_______________________________________________
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]