Friday 30 September 2016

coply datatable to another table specific column in C#

 string[] selectedColumns = new[]
            {
               // "Title",
                "FirstName",
                //"MiddleName", "LastName", "Suffix", "Company", "InformalSalutation", "FormalSalutation",
                //"AddressName",
                "Address1","Address2"
                //,"City","State","Zip","Country"
                };
            DataTable dtTest = new DataView(dataTable1).ToTable(false, selectedColumns);

No comments:

Post a Comment