Problem with WPF and removing a row from a datagrid
-
I am very new to WPF and I have taken over a WPF project from someone else. Problem I have is removing a rows from two datagrids. To expand on this, the UI works as follows; there are 3 datagrid; the first column (a Combobox) on each of the three datagrids are bound to the same data source. However, the columns on the other two datagrids (also comboboxes) their values depends upon whatever the user selects as their selected item in the first combobox, and this works in the viewmodel layer. All of this works fine, but problem comes with removing rows. The issue I have is this, if I remove a row in the first datagrid, and lets say this row has the value of "X", this gets deleted. If this value appears in a row in other two datagrids, the column in the other two datagrids gets removed but not the row themselves. So, my question is, how do remove a row or rows from a datagrid based upon a value from another datagrid? Thanks