Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Well,

 

I would try something like this:

 

First, create a clone of the original datatable, which is a shallow copy with the appropriate columns.

 

Next, loop through the datarows of your table like:

 

For each dr as DataRow in myDataSet.Tables(0).Rows

 

'here find if the substring "fr" exists

'in the dr.Item(columNumber)

 

'If you found it, then copy the datarow to your new datatable

 

Next

 

Once, all is done, you will have a datatable with only records containing your substring.

 

Hope this helps...

IS

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...