ADO.NET DataRow - check for column existence
You can simply check like this:
return row.Table.Columns.Contains(columnName);
DataTables have that schema info, so check if the Row's Table's Columns collection contains the field.
You can simply check like this:
return row.Table.Columns.Contains(columnName);
DataTables have that schema info, so check if the Row's Table's Columns collection contains the field.