shouldn't it be:

vb Code:
  1. For Each row As DataRow In tmpTable.Rows
  2.      For Each col As DataColumn In tmpTable.Columns
  3.           With Flxgrid
  4.               .TextMatrix(rw, cl) = row(col)
  5.               cl += 1
  6.           End With
  7.      Next
  8.      rw += 1
  9.      cl = 0
  10. Next

what error are you getting?