Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2335
Bind XAMGrid with Inner List of Objects
posted

Hi,

We have to bind a grid with data source with a list of objects. in object we have couple of scalar properties, and a list of other object with N Items in it. In simple we want to bind columns with index of propert like Item.D[i]. our data structure is  Like following

public

 

 

class class1

 

 

 

 

 

 

{

 

 

 

public string A { get; set; }

 

 

 

public double B { get; set; }

 

 

 

public int C { get; set; }

 

 

 

public List<class2> D { get; set; }

}

public

 

 

class class2

{

 

 

 

public string Title { get; set; }

 

 

 

public double Value { get; set; }

}

Can you help us how can we bind List<class1>  with XamGrid and it may show N Items of Class2 as columns. while we may have same number of items in each sub list on specific time.

thanks

Parents
No Data
Reply Children