Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/11/2011, 13:45
Avatar de bieres
bieres
 
Fecha de Ingreso: marzo-2011
Mensajes: 63
Antigüedad: 13 años, 1 mes
Puntos: 5
Respuesta: Obtener el id de la tabla mediante un combobox

Cita:
Iniciado por ci2000 Ver Mensaje
Código:
        Dim IdProducto As Integer = Convert.ToInt32(CoClasificacion.SelectedValue)

        Dim Descripcion As String = Convert.ToString(CoClasificacion.Text)
        MsgBox(String.Format("Id: {1} {0}Descripcion: {2}", Environment.NewLine, IdProducto, Descripcion))
Hola, me parece que lo que el indice que te devuelve debe de ser el indice correspondiente a tu DataTable, entonces podrias leerlo.
Código:
DataRow row = dt.Rows[CoClasificacion.SelectedValue];

row["Id"].ToString();
__________________
http://medprest.com