Question

Suppose I have a data set that contains orders where every order contains one or more order items. So if I have an order with two orders, where order #1 has three items (A,B,C) and order #2 had two items (D,E), I want to see something like this:

Order #Contact NameItemItemItem
1Jim BobABC
2AlbertDE

This kicker is that I do not know how many items there are ahead of time, and that I would like each cell to be editable.

Was it helpful?

Solution

There are few possible options to solve this task. Maybe the easiest could be if you are using DataSet and two DataTables (one for your Orders and second one for your Order`s Items). After that you could create a DataRelation between both tables and apply this DataSet to DataSource property of your grid.

Another possible solution could be if you are using GroupByColumn functionality of our grid. Using this approach you could group by your Orders column

Let me know if you have any questions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top