Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/05/2011, 11:42
Ka0stj
 
Fecha de Ingreso: febrero-2010
Ubicación: México
Mensajes: 738
Antigüedad: 14 años, 2 meses
Puntos: 37
Respuesta: Pasar datos de un dataTable a un DataRow en un foreach c#

Echale un ojo al siguiente enlace:

http://www.dotnetperls.com/datatable-foreach

DataTable table = GetTable(); // Get the data table.

foreach (DataRow row in table.Rows) // Loop over the rows.
{
Console.WriteLine("--- Row ---"); // Print separator.
foreach (var item in row.ItemArray) // Loop over the items.
{
Console.Write("Item: "); // Print label.
Console.WriteLine(item); // Invokes ToString abstract method.
}
}

Saludos!
__________________
http://ka0stj.wordpress.com/