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
405
Hierarchy of three levels
posted

Hi,

Am trying to bind hierarchy grid to a costom collection objects with three levels of hierarchy.

The Hierarchygrid behave correctly for 2 levels but when a thrid level is added, it always throws and exception stating that the "Key is already present".

Can you please show a sample code for binding custom collection for three levels.

 

 <ig:WebHierarchicalDataGrid  ID="_uiPropertyWHDG" runat="server" 
                           Height="400px" Width="95%" InitialDataBindDepth="-1"
                         DataKeyFields="CurrencyId" >
                    </ig:WebHierarchicalDataGrid>
_uiPropertyWHDG.DataSource = GetInvestments( UserId );
_uiPropertyWHDG.DataBind();
_uiPropertyWHDG.ExpandAll();

The data hierarchy levels are
Currency, Company, InvestmentDetails. 
Different investments re purchased in different companies that 
are used in different currencies.

Thanks,

Arif

Parents Reply Children
No Data