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.
Unfortunately, activation email could not send to your email. Please try again.

List as DataSource

Thread ID:





94811 Jun 2,2010 04:49 PM Jun 4,2010 10:34 AM Windows Forms 1
Tags: GridControl
Lena Prys
Asked On June 2, 2010 04:49 PM

Hello, I'm trying to modify example from http://help.syncfusion.com/ug_64/gridwin/ForeignKeyColumnsShowingOneValueButSavingAnother.html so ForeignKeyTable() method returns List and looks something like this

public class MyClass
public string Name {get;set;}
public int CustID {get;set;}

private List ForeignKeyTable()
List l = new List();
MyClass c =new MyClass();
c.Name = "Name1";
c.CustID = 1;
return l;

but it doesn't work: ValueMember shown - not DisplayMember. Do i miss some parameter or something? Please, help me fix the code.

Arulraj A [Syncfusion]
Replied On June 4, 2010 10:34 AM

Hi Lena,

Thanks for your interest in Syncfusion Products.

Please follow up with the below forum thread, in which similar query has been discussed.

Let me know if you have any further concerns.



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.

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.