Has anybody faced this issue in WebHierarchicalDataGrid, I have used this control expanding till 3 levals without any problem.
But im having issues using a SelfRererencing table, any ideas... is that a BUG in the control?
Ex:
Id (PK)
name (Varchar)
ParentId (FK)
HelloPlease let me know if you need furhter assistance with this case.
HelloPlease look at this post in our forum - http://forums.infragistics.com/forums/t/58654.aspx. the forum post contains a sample with self referenced table which you can run and examine on your own. The exceptions is caused by trying to add a table 2 times at the same level of the hierarchy
Hi I have the latest version installed.
Line 391: Line 392: wC.DataSource = cs.DefaultIfEmpty(); Line 393: wC.DataBind(); Line 394: } Line 395:
[ArgumentException: An item with the same key has already been added.] Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid.DataBind() +1060 Lloyds.WMIT.DIS.Web.Client.ClientAdmin.BindHierarchy(ClientEntity entity) in C:\DIS\DIS\Lloyds.WMIT.DIS.Web\Client\ClientAdmin.aspx.cs:393 Lloyds.WMIT.DIS.Web.Client.ClientAdmin.Bind() in C:\DIS\DIS\Lloyds.WMIT.DIS.Web\Client\ClientAdmin.aspx.cs:361 Lloyds.WMIT.DIS.Web.Client.ClientAdmin.Page_Load(Object sender, EventArgs e) in C:\DIS\DIS\Lloyds.WMIT.DIS.Web\Client\ClientAdmin.aspx.cs:55 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 Lloyds.WMIT.DIS.Web.Common.Base.BasePage.OnLoad(EventArgs e) in C:\DIS\DIS\Lloyds.WMIT.DIS.Web\Common\Base\BasePage.cs:147 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Hi madhu_penta,
Do you have a better stack trace of the exception? Or a sample website that reproduces this problem? If you do not have the latest Service Release for whatever version you're using, I would upgrade as well.
regards,David Young