0

I need to delete a lot of columns from my data table. Does exist any query in C# with LINQ or any command that do this in a simple way by specifying the name of the column? Something like: dt.DeleteColumn("column name"); Or maybe clone only the column that i need in another dt?

2

1 Answer 1

1
dt.Columns.Remove("IHateThisColumn");
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.