1 2 3 4
private static bool ColumnExistsInTable(DataTable dataTable, string columnName) { return dataTable.Columns.IndexOf(columnName) != -1; }