What causes CanLoad to be false?? RRS feed

  • Question

  • I have a DataForm whose ItemsSource binds to a Domain Data Source's Data. 

    Every time Current Item changes, it will set a combo box's ItemsSource to another unrelated Domain Data Source (AutoLoad=True. No data editing, just reading data from it). 

    And I find this makes CanLoad of the first Domain Data Source to be false forever. 


    Thursday, December 2, 2010 7:24 PM


  • It's likely (but no guarantees) that setting the ItemsSource is also updating the SeletedItem/Value via TwoWay-binding. The DDS's CanLoad property is set to false once any of the entities it contains have changes.

    If you want to figure the exact cause, add a property change listener to the DDS and add a break point so you can follow the stack trace back to the entity property that is being changed.

    Monday, December 6, 2010 10:48 AM