Hi,
it's been days kept searching this issue, I couldn't find a solution.
I have main class and list class inside it,
everything is fine,
but my problem that in binding main class list with sub list class,
I have to put manual indexer in my listview so the data can be returned such as" categories [0].title"
- if I access the sub class directly nothing displayed if try to bind it, I have to put [digit] so value can be returned.
how can I avid using indexer value, so the values can be dynamic returned
this class
public class Post
{
public int id { get; set; }
public string type { get; set; }
public List<Category> categories { get; set; }
}
public class Category
{
public int id { get; set; }
public string slug { get; set; }
public string title { get; set; }
public string description { get; set; }
public int parent { get; set; }
public int post_count { get; set; }
}