Being new to working with Data, I hope I’m asking this properly. How can I select what columns come in from a DataSet into a DataTable? I know I can fill a DataTable by using…
DataTable table = dataSet1.Tables[0];
but this brings in all the columns. How can I fill a DataTable with only certain columns?
I’m using .NET 3.5, C#, and a SQL CE 3.5 single table database.
Thanks.
Instead of “CustomerID, CompanyName” you can put the columns you want to select.
For further learning check this MSDN link.