J
Jack
I have a DataView set up as following:
DataView dv = new DataView();
dv.Table = twsDS1.twsContractHdr;
dv.RowFilter = "AgencyID = '" + agency + "' AND NeedsStatus = 'I'";
int cnt = dv.Count;
In my test, this returns the expected value of "3" for the cnt of incomplete
items within the contract header table in the testdriver. If I then modify
one of the row needs status to "C" (completed) in the testdriver and rerun
the above, I expect to see "2" for this value... but it is still returning
the original value of 3.
I tried modifying to use a DataRow[] and foreach loop using a Select clause
using the same filter as above. It, too, loops three times after modifying a
row to "C". Displaying the text on each loop shows two are still "I" as
expected and the third "C" as NOT EXPECTED in that it should have been
filtered out in the Select.
What gives? Do I need to do an AcceptChanges?
DataView dv = new DataView();
dv.Table = twsDS1.twsContractHdr;
dv.RowFilter = "AgencyID = '" + agency + "' AND NeedsStatus = 'I'";
int cnt = dv.Count;
In my test, this returns the expected value of "3" for the cnt of incomplete
items within the contract header table in the testdriver. If I then modify
one of the row needs status to "C" (completed) in the testdriver and rerun
the above, I expect to see "2" for this value... but it is still returning
the original value of 3.
I tried modifying to use a DataRow[] and foreach loop using a Select clause
using the same filter as above. It, too, loops three times after modifying a
row to "C". Displaying the text on each loop shows two are still "I" as
expected and the third "C" as NOT EXPECTED in that it should have been
filtered out in the Select.
What gives? Do I need to do an AcceptChanges?