title: Domain Data Source CanLoad is false when using RIA Query Parameter bound to a dependency property
body: <p>I have a ria DDS query whose parameter is bound to a dependency property of the code behind my silverlight page. The issue is that once the project dependency is changed I get the following error.</p>
  
  <p>QueryParameters cannot be changed when CanLoad is false.  Changing the QueryParameters initiates a load operation, and load operations are not permitted when CanLoad is false.  Controls that invoke load operations should be disabled when CanLoad is false.</p>
  
  <p>I'm at a loss on how to complete or cancel the load so I can change the details view for a project every time a new project is selected from a list.</p>
  
  <pre><code>&lt;riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my1:XT_PROJECTS, CreateList=true}" Height="0" LoadedData="ProjectDetailsDomainDataSource_LoadedData" Name="ProjectDetailsDomainDataSource" QueryName="getProjectDetails"  Width="0" &gt;
          &lt;riaControls:DomainDataSource.DomainContext&gt;
              &lt;my:MYservices /&gt;
          &lt;/riaControls:DomainDataSource.DomainContext&gt;
          &lt;riaControls:DomainDataSource.QueryParameters&gt;
              &lt;riaControls:Parameter ParameterName="project" Value="{Binding ElementName=ProjectDetailsPage, Path=project}" /&gt;
          &lt;/riaControls:DomainDataSource.QueryParameters&gt;
      &lt;/riaControls:DomainDataSource&gt;
  
  public static readonly DependencyProperty projectIDDP =
      DependencyProperty.Register("project", typeof(string),typeof(ProjectDetails),
      new PropertyMetadata(""));
   public string projectID
      {
          get
          {
              return (string)GetValue(projectIDDP);
          }
          set
          {
              SetValue(projectIDDP, value);
          }
      }
  </code></pre>