What I understood is, you are having one table SalesOrderHeader table with some fields like SalesPersonID, ContactID and CustomerID. You need to fetch the records wher e SalesPersonID = 399. Further you need to FILTER this dataset with ContactID=30 and CustomerID=478.
you can simply filter with RowFilter Property as..
dsDataSet.Tables[0].DefaultView.RowFilter = "ContactID=30 And CustomerID=478";
Thus, Filtered dsDataSet DataSet will contain the records which is having SalesPersonID=399, ContactID=30 and CusomerID=478.
Please, let me know if this is not the case.
hope it helps./.
"I would love to change the world, but they won’t give me the source code"
Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point & mark your thread as Resolved for the sake of Future Readers.
KaushaL ||
BLOG ||
Profile ||
Microsoft MVP