Here is the scenario, the grid contains one row per product and detail rows with inventory details from multiple distirbutors.
On a right click, one of the options is to do a real time update on the inventory data in the detail rows. The request could occur when the mouse is over the main row or one of the detail rows. In either case I want to iterate through each detail row, call the function that gathers the new information, take that data to update the row, and the write the changes to the database, perhaps on the next submit, or immediately, I don't care which.
What I am not clear on is
1) How to iterate through the detail rows to get the necessary information like which distributor it is
2) How to force new data into those rows so the view is updated
Hi,
So just to be clear, you've got 2 levels of data, Your Root collection, and a child collection, which we refer to as a childband, correct?
To update the childBand data, assuming the collection its bound to is an ObservableCollection, you can modify the collection directly.
As for iterating through it.
Getting to the child Rows:this.grid.Rows[0].ChildBands["YourColumnLayoutKey"].Rows[0[
And walking back up from a child row:
row.Manager.ParentRow
Hope this helps,
-SteveZ