Chapter 8. Sorting, Searching, and Filtering

In Chapter 5, you learned how to use a SqlDataAdapter object to fetch the results of queries into a DataSet object. In Chapter 6, which covered the DataSet class and the objects it contains, you learned how to examine the results of such queries by looping through the DataRow objects in a DataTable.

But how do you locate a specific row in your DataTable by a value or set of values? How do you apply a filter so that only rows that satisfy the specified ...

Get Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.