How do I find out if a column exists in a VB.Net DataRow

Solution 1:

DataRow's are nice in the way that they have their underlying table linked to them. With the underlying table you can verify that a specific row has a specific column in it.

    If DataRow.Table.Columns.Contains("column") Then
        MsgBox("YAY")
    End If

Solution 2:

You can use DataSet.Tables(0).Columns.Contains(name) to check whether the DataTable contains a column with a particular name.