We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid Foreign Key Column - Circular Reference

Thread ID:





149163 Nov 16,2019 03:32 PM UTC Nov 18,2019 12:48 PM UTC ASP.NET Web Forms 1
Tags: Grid
Asked On November 16, 2019 03:32 PM UTC


ASP.NET Web Forms in VB.NET.

I get a Circular Reference Error on 


 when adding a Foreign Key Column.


dsGoods.SelectParameters("CustomerID").DefaultValue = oUser.CustomerID
Dim index = dgLoads.Columns.FindIndex(Function(col) col.Field = "GoodType")
dgLoads.Columns.ElementAt(index).DataSource = dsGoods

<ej:Grid ID="dgLoads">
     <ej:Column Field="GoodType" HeaderText="Type" ForeignKeyValue = "GoodDescription" ForeignKeyField = "GoodID" />
<asp:SqlDataSource ID="dsGoods" runat="server" ConnectionString='<%$ ConnectionStrings:PSWEB %>'
        SelectCommand="SELECT [GoodID], [GoodDescription] FROM [Goods] WHERE ([CustomerID] = @CustomerID)">
            <asp:Parameter Name="CustomerID" Type="Int32" />

What's wrong?

Farveen Sulthana Thameeztheen Basha [Syncfusion]
Replied On November 18, 2019 12:48 PM UTC

Hi Peter, 

Thanks for contacting Syncfusion Support. 

We have checked your query and we have already discussed about this requirement “Circular reference error while using Entity Framework/Linq 2 SQL” in our Syncfusion Knowledge Base. Refer to the below KB link:- 
Please get back to us if you need any further assistance. 

Fareen sulthana T 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon