SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the DataColumnCollection of Your datatable to check if the column is in the collection.
Something like:
DataColumnCollection Columns = dtItems.Columns; if (Columns.Contains(ColNameToCheck)) { row["ColNameToCheck"] = "Checked"; }