• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

DataTable.Select

Hi Experts,

When using DataTable.Select to filter out unwanted rows an array of rows is returned. How do I go about turning this array of wanted rows back into a DataTable. A simple demo would be appreciated.
0
DColin
Asked:
DColin
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
why not use a dataview instead of datatable?
I presume you want to use the result to bind?
Dim dv as dataview = DataTable.DefaultView
dv.RowFilter = "<condition>"

Open in new window

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now