Structure of execution a query on dataTable.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!

I am interested to lern how to execute queries on dataTables , in order to
get a specific data , and - how do I keep the data I get from the query .

Thanks for your help...
 
I think you assume too much.

You cannot run arbitrary queries on datatables. A datatable is not the
equivalent of an in-memory database.

There are 2 things that allow for some limited functionality:

1. The Select method of the DataTable. It let's you define a WHERE clause
(with a limited set of supported operators), and returns an array of DataRow
objects that meet criteria
2. Create a DataView on the datatable. This let's you set up a filtering and
sorting criteria.
 
Back
Top