Given a DataTable with Columns A, B, C, D
looking for a clean way to restrict columns to say A, C
similar to how the DataView restricts the Rows in a DataView
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Found the solution, posting it here for others who might land here
DataView.ToTable() method described here http://msdn.microsoft.com/en-us/library/wec2b2e6.aspx
used as
DataTable.DefaultView.ToTable( flag, );