Cómo iterar en un DataTable

Para iterar en un DataTable usa el siguiente código.

VB.NET:
  1. Dim tabla as new DataTable()
  2. Dim Renglon as DataRow
  3. For Each Renglon in tabla.Rows
  4.  'Haz algo con Renglon("NombreDeColumna")
  5. Next

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.