Results 1 to 2 of 2

Thread: [RESOLVED] DataTable Filter To Another DataTable

  1. #1

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Resolved [RESOLVED] DataTable Filter To Another DataTable

    Hello

    Need some help, i have a datatable with some data, i need to select some of the data, and put that data in a new datatable.

    What's the best way to do this?

    Rate People That Helped You
    Mark Thread Resolved When Resolved

  2. #2
    Addicted Member
    Join Date
    Nov 2006
    Location
    Minnesota
    Posts
    235

    Re: DataTable Filter To Another DataTable

    Code:
    Dim newTable as DataTable()
    Dim dv as new dataview(OldTable)
    dv.RowFilter = "Column1 = 'Here' AND Column2 > 2"
    newTable = dv.ToTable("NewTableName") 'Also has params for distinct
    If someone has helped you, please make sure to rate them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width