>
>        It might be some sort of reference conflict. I notice that you're
> using 'append()', which means that your selData attribute is a list, not a
> tuple. Since lists are mutable, you are probably sharing list references
> between your local data and the grid's DataSet.
>
>        Try this: add 'import copy' to the top of your script, and then
> change the assignment line to:
>
> self.selGrid.DataSet = copy.deepcopy(self.selData)
>
>
>
That seemed like a good idea, especially since the error only seems to occur
when the dataset is decreased and then increased again.  Unfortunately,
switching to deepcopy doesn't seem to have fixed it.  Any other ideas?  I'm
using OSX, if that's relevant (in case it's an operating system).

I could also try using a dynamic DataSet, but I haven't been able to get the
assigned dynamic function to be called when I want the grid to update.  Is
it likely that getting this method to work would fix the problem I'm having?

Thanks,
Bronwyn


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to