Ver Mensaje Individual
  #11 (permalink)  
Antiguo 13/09/2012, 08:06
DavidNovato
 
Fecha de Ingreso: junio-2012
Ubicación: Caracas-Venezuela
Mensajes: 114
Antigüedad: 12 años, 8 meses
Puntos: 0
Respuesta: ID en DataGridview

Cita:
Iniciado por Dradi7 Ver Mensaje
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
Creo que esta mal estructurado lo que me dices que ponga..
__________________
David`Novato