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.
_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
Hello meetarifmd,
Please let me know if you have any questions
Thanks for your reply.
I guess we solved it in other ways and its long back post.