Rich Assaf
2008-10-18 00:59:10 UTC
Hoping for any suggestions on this:
Standard Orders/LineItem tables, with parent/child relationship.
Normally, I would use 2 grids, parent grid above, child grid below.
In this case, I'd like to display them in the same control, like this:
John Smith OrderNumber OrderDate
LineItem 1 detail
LineItem 2 detail
Suzy Chapstick OrderNumber OrderDate
LineItem 1 detail
LineItem 2 detail
LineItem 3 detail
I haven't worked with TreeViews, would this work OK with small- or
medium-size tables (5k - 50k records)?
I'm also considering using SQL to build a combined table, then display
in a grid. Advantage is conditionally coloring the rows based on some
LineItem details (perhaps Treeviews can also be conditionally
formatted?). Problem is user needs to sort by OrderDate or OrderNumber,
either ascending or descending, and also quickly switch between showing
either all items or open items only ... and I'm not sure how I could
make the children follow the parent in a "hybrid grid"
There will usually be 1-4 LineItems, rarely more....
User needs to double-click on a lineitem and open a detail form to edit
certain fields, or double-click on a parent item and open a different
form to edit.
Anyone done anything like this???
Thanks, Rich
Standard Orders/LineItem tables, with parent/child relationship.
Normally, I would use 2 grids, parent grid above, child grid below.
In this case, I'd like to display them in the same control, like this:
John Smith OrderNumber OrderDate
LineItem 1 detail
LineItem 2 detail
Suzy Chapstick OrderNumber OrderDate
LineItem 1 detail
LineItem 2 detail
LineItem 3 detail
I haven't worked with TreeViews, would this work OK with small- or
medium-size tables (5k - 50k records)?
I'm also considering using SQL to build a combined table, then display
in a grid. Advantage is conditionally coloring the rows based on some
LineItem details (perhaps Treeviews can also be conditionally
formatted?). Problem is user needs to sort by OrderDate or OrderNumber,
either ascending or descending, and also quickly switch between showing
either all items or open items only ... and I'm not sure how I could
make the children follow the parent in a "hybrid grid"
There will usually be 1-4 LineItems, rarely more....
User needs to double-click on a lineitem and open a detail form to edit
certain fields, or double-click on a parent item and open a different
form to edit.
Anyone done anything like this???
Thanks, Rich