CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Location
    London/Moscow
    Posts
    60

    best way to move/copy a datatable

    Hi All,

    Could someone please recomend me what is the best strategy to move or copy a datatable from one dataset into another. This operation will be done fairly often and good speed is essential because the second dataset acts as a datasource.

    Thanks

  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878
    ' Add the DataTable to a new DataSet.
    Dim ds As New System.Data.DataSet("myDataSet")
    ds.Tables.Add(dt)
    Iouri Boutchkine
    iouri@hotsheet.NOSPAM.com

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

Featured