I have to check if a column exists in a table, if it does than I have to delete it and if it doesn’t exist I have to add it, and only in vb.
I’ve read something about DataColumnCollection.Contains– for checking if the column exists, but I don’t really understand how to use it. any help is useful.
To remove it from the
DataTable, first check whether it exists withContainsand then useRemoveTry: