Changeset 1229
- Timestamp:
- 08/30/05 18:56:56 (3 years ago)
- Files:
-
- trunk/dabo/ui/uiwx/dGrid.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/ui/uiwx/dGrid.py
r1171 r1229 757 757 # Save the focus, if any 758 758 currFocus = self.FindFocus() 759 currDataField = None 760 761 # if the current focus is data-aware, we must temporarily remove it's binding 762 # or the value of the control will flow to other records in the bizobj, but 763 # I admit that I'm not entirely sure why. 764 if currFocus: 765 try: 766 currDataField = currFocus.DataField 767 currFocus.DataField = "" 768 except AttributeError: 769 pass 770 759 771 # Get the default row size from dApp's user settings 760 772 app = self.Application … … 819 831 for rr in range(self.RowCount): 820 832 self.SetCellEditor(rr, ii, edtClass()) 821 833 822 834 if currFocus is not None: 835 # put the data binding back and re-set the focus: 823 836 try: 824 currFocus.SetFocus() 837 currFocus.setFocus() 838 currFocus.DataField = currDataField 839 currFocus.refresh() 825 840 except: pass 826 841
