cast dataset RRS feed

  • Question

  • Hi,

      how to cast a dataset to another dataset
    • Moved by Eric Smyth - MSFT Tuesday, July 28, 2009 1:16 AM (From:Transactions Programming)
    • Moved by Phani Raju MSFT Monday, August 3, 2009 6:33 PM (From:ADO.NET Data Services)
    Wednesday, July 22, 2009 1:07 PM


  • What do you mean? Cast refers to converting to one type to a differt one. If whay you want to do is to COPY one DataSet into antoher, then use the Copy method:

    onedataSet = anotherDataSet.Copy();

    If you only want to COPY the other DataSet's structure, and not its data, use the Clone method:

    onedataSet = anotherDataSet.Clone();

    :. HUGONNE .: Please mark as answer if the post helps. Visit my coding blog - http://hugonne.blogspot.com
    Thursday, August 6, 2009 9:58 PM