selecting un-used items only
Posted on 2012-04-12
I have two datagridviews in a parent child relationship.
The child datagridview that has a combo box column bound to a dataset that fills up the column(called it column A) with values -basically it picks the value name from the master record(for example value currencyid -its master record has the currency name which user can easily identify-*thats just an example of the concept)
I want to be able to:
(1)select the parent row and in the child datagridview, have column A be filled with the correct values for each child row.
(2)when i want to add a new child row,column A only populate with records not previously used.(actualy am using a view to check if the value in A has a balance or not and i want to populate only those with balances)
The problem is that when I use a select statement that filters so as to get point (2), databinding is not possible (point 1)
How do I resolve this so that when a user starts a new child row they get only the filtered data -and not affect the earlier data which is databound?