Check string to see if it DOES NOT start with "x" Check string to see if it DOES NOT start with "x"

For each Activity: item in dt.Columns.Cast(Of DataColumn).Select(Function (x) x.ColumnName)
TypeArgument: String

If Activity: Not item.Trim().StartsWith(“P-enhedens”) - when it should be negated, otherwise ommit the Not
Then: Remove DataColumn use Colname: item
Else: do other things

Kindly note: we are looping over the names because of would we loop over the columns and delete a column we would get a collection modified exception

As an alternate we can alos loop over dt.Clone.Columns then we can delete columns from original datatable without collection modified exception