A DataRow does not necessarily belong to any table's collection of rows. This behavior occurs when the DataRow has been created but not added to the DataRowCollection. If the RowState property returns DataRowState.Detached, the row is not in any collection.
PrivateSub GetTable(ByVal row As DataRow)
' Get the DataTable of a DataRow Dim table As DataTable = row.Table
' Print the DataType of each column in the table. Dim column As DataColumn
ForEach column in table.Columns