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
Thanks for your reply.
I guess we solved it in other ways and its long back post.
Hello meetarifmd,
Please let me know if you have any questions
Hello meeterifmd,
Thank you for your post.
It seems that you may be having issues with databinding. Additional information such as StackTrace, or how data extraction is setup may provide more definitive clues as to the cause of this exception.
For the meantime, please refer to the following forum post :
http://blogs.infragistics.com/forums/p/50127/270662.aspx
Please let me know if you have any questions.