Let's say you have a grid of customers and you want to show the last five order numbers for that customer in a single column.
How could this be done WITH data binding?
So, specifically you have a grid with two columns: Name & Last 5 Order Numbers and it might looks like
Name | Last 5 Order Numbers
Acme | #1, #100, #200, #201, #202
Ford | #11, #1100, #1200, #1201, #1202
Example Model
public class CustomerModel
{
public string Name { get; set; }
public List<string> Last5OrderNumber { get; set; } = new List<string>();
}
I came up with this, but wondering if there's a better way: