How do I check for the existence of a column in a datarow?
I\'m building datatables to organize some data that I\'ve already pulled back from the database. Dependin
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.