Table: tblCustomer columns: custId(string), custFName(string), custLName(string), Address1(string), Address2(string), City(String), Zipcode(string), State(String), email(string), Phone(string).
I want to retrieve the values of these columns: custId(string), custFName(string), custLName(string), email(string), Phone(string) from tblCustomer.
I want to change the column names to Customer Id, First Name, Last Name, Email, Phone Number in the new table.
I am able to get only one column. How to get multiple columns and all rows and convert it to a DataTable
DataTable dt = tblCustomer
.AsEnumerable()
.Select(rows => rows.Field<string>("custId").Copytodatatable()