Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
How to Link Objectdatasource to WebheirarchicalDataSource
posted

Hi  i have webheirarchical datagrid which datasource will come from an objectdatasource.

Now i have problem on linking this two:

PARENT:

  <asp:ObjectDataSource ID="odsPatent" runat="server" 

        SelectMethod="GetParent" TypeName="ClassLibrary1.Class1">

    </asp:ObjectDataSource>

 

CHILD:

  <asp:ObjectDataSource ID="odsChild" runat="server" 

        SelectMethod="GetChild" TypeName="ClassLibrary1.Class1">

 <SelectParameters>

              <asp:ControlParameter ControlID="WebHierarchicalDataGrid1" DefaultValue="0" 

                  Name="ParentId" PropertyName="ParentId" Type="Int32" />

          </SelectParameters>

    </asp:ObjectDataSource>

WebHierarchicalDataSource:

 <ig:WebHierarchicalDataSource ID="WebHierarchicalDataSource1" runat="server">

        <DataViews>

            <ig:DataView ID="odsParent_DefaultView" DataMember="DefaultView" 

                DataSourceID="odsParent" />

        </DataViews>

    </ig:WebHierarchicalDataSource>

 

where WebHierarchicalDataSource cant link the two datasources.