Check if required columns are present in the datatable using Linq ( All | Any )

Today we are gonna see how to check if required columns are present in datatable using Linq method.

Handle both these exceptions :

  1. Column ‘columnname’ does not belong to the datatable.
  2. A column named ‘columnname’ already belong to the datatable
1 Like