Ver Mensaje Individual
  #9 (permalink)  
Antiguo 12/09/2012, 15:23
Avatar de Dradi7
Dradi7
 
Fecha de Ingreso: junio-2008
Ubicación: Peru - Lima
Mensajes: 1.518
Antigüedad: 16 años, 9 meses
Puntos: 220
Respuesta: ID en DataGridview

En todo caso cambia esto

Código vb:
Ver original
  1. Dim total as Integer
  2. Dim row as DataGridViewRow
  3.  
  4. DataGridView1.Rows.Add(1)
  5.  
  6. total = DataGridView1.Rows.Count
  7. row = DataGridView1.Rows(total-1)
  8.  
  9. row.Cells(0).Value = txtcantidadd.Text
  10. row.Cells(1).Value = cboproducto.Text
  11. row.Cells(1).Tag = cboproducto.Value
  12. row.Cells(2).Value = cboproveedor.Text
  13. row.Cells(2).Tag = cboproveedor.Value
  14. row.Cells(3).Value = cboserial.Text
  15. row.Cells(3).Tag= cboserial.Value
  16. row.Cells(4).Value = txtcaracteristicas.Text

por esto

Código vb:
Ver original
  1. Dim row as DataGridViewRow
  2.  
  3. DataGridView1.Rows.Add(1)
  4.  
  5. total = DataGridView1.Rows.Count-1
  6.  
  7. DataGridView1.Rows(total).Cells(0).Value = txtcantidadd.Text
  8. DataGridView1.Rows(total).Cells(1).Value = cboproducto.Text
  9. DataGridView1.Rows(total).Cells(1).Tag = cboproducto.Value
  10. DataGridView1.Rows(total).Cells(2).Value = cboproveedor.Text
  11. DataGridView1.Rows(total).Cells(2).Tag = cboproveedor.Value
  12. DataGridView1.Rows(total).Cells(3).Value = cboserial.Text
  13. DataGridView1.Rows(total).Cells(3).Tag= cboserial.Value
  14. DataGridView1.Rows(total).Cells(4).Value = txtcaracteristicas.Text
__________________
La clave de todo triunfador es eliminar todas sus excusas y sus limitaciones