Over a million developers have joined DZone.

Create Clone Of Dataset

DZone's Guide to

Create Clone Of Dataset

Free Resource
Following code copies structure of the DataSet, along with datatable relations, constraints and schemas. 
Keep it in mind that it does not copy any data.

 DataSet datasetcolone= mydataset.Clone();

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}