Solved

DataTable.Select

Posted on 2009-04-12
1
190 Views
Last Modified: 2012-05-06
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
Comment
Question by:DColin
1 Comment
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 24126470
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with preventing downloading a zip file 10 49
vb.net winforms sizing/resolution? 4 54
VB.Net Determine if a mapped network drive exists 2 52
Access Schema 6 45
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question