C
C#8mo ago
Visual Code

❔ Grid Employee

Hey I need help with my code, I have 2 grids, in one grid there are employees with checkboxes and the second grid is empty, there is an assign button that assigns the employee from one grid to the other grid, but it doesn't work, I have already set a breakpoint and looked in the code, but it shows me that employees have been selected and they just disappear on the left grid
2 Replies
JakenVeina
JakenVeina8mo ago
okay, so A) the left-hand grid displays allEmployees B) the left-hand grid populates SelectedRows to represent the current UI selections C) upon click of the "Zuweisen" button, AssignEmployees() is called, whcih removes all selected rows from the left-hand grid and adds them to the right-hand grid What's up with OnUpdate()? When does that run? Why is it doing the same thing as AssignEmployees()? what does Command="Assign" do, on the button? have you tried preserving the collection instances, instead of swapping them out, entirely? Do those new instances actually get propagated down into the grid component?
Accord
Accord8mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.