vb.2005 CurrentCellChanged

N

nicjori

hola a todos. tengo una pregunta que no puedo resolverlo se trata que
en datagrid de vb.net 2003 se utiliza el metodo CurrentCellChanged
para traspasar los datos de las campos a una caja de texto aquie les
mando el codigo que se utilizo en vb.net 2003

Private Sub DgrProducto_CurrentCellChanged(ByVal sender As Object,
ByVal e As System.EventArgs) Handles DgrProducto.CurrentCellChanged
Dim Posicion As Integer
Posicion = Me.DgrProducto.CurrentCell.RowNumber
Me.TxtCodigo.Text = Me.DgrProducto.Item(Posicion, 0)
Me.TxtDescripcion.Text = Me.DgrProducto.Item(Posicion, 1)
Me.CbUnidadMedida.Text = Me.DgrProducto.Item(Posicion, 2)
Me.TxtPrecio.Text = Me.DgrProducto.Item(Posicion, 3)
Me.TxtStock.Text = Me.DgrProducto.Item(Posicion, 4)
Me.DtpFechaCompra.Text = Me.DgrProducto.Item(Posicion, 5)
End Sub

bueno el problema es que ahora estoy trabajando con vb.net 2005 y el
metodo CurrentCellChanged no puedo utilizarlo me vota error.
Si alguien pueda ayudarme lo agradecere de antemago gracias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top