Return to Snippet

Revision: 27908
at July 1, 2010 05:03 by derebus


Updated Code
dim dtAntiguo as datatable
dim dtNuevo as datatable
dtNuevo = dtAntiguo.Copy()
dtNuevo .Columns.Remove("ColumnToRemove")

Revision: 27907
at June 26, 2010 12:51 by derebus


Initial Code
dim dt1 as datatable
dim dt2 as datatable
dt2 = dt1.Copy()
dt2.Columns.Remove("ColumnToRemove")

Initial URL

                                

Initial Description
Copia columnas y data de un datatable a otro. Y luego quitamos las columnas innecesarias

Initial Title
Copia columnas de un datatable a otro

Initial Tags

                                

Initial Language
VB.NET