List as DataSource

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;
l.Add(c);
return l;
}

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

1 Reply

AA Arulraj A Syncfusion Team June 4, 2010 02:34 PM UTC

Hi Lena,

Thanks for your interest in Syncfusion Products.

Please follow up with the below forum thread, in which similar query has been discussed.
http://www.syncfusion.com/support/forums/general/94810

Let me know if you have any further concerns.

Regards,
Arulraj.A

Loader.
Up arrow icon