Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/02/2009, 09:03
Avatar de Slackin
Slackin
 
Fecha de Ingreso: noviembre-2007
Ubicación: Puerto Montt, Chile
Mensajes: 86
Antigüedad: 16 años, 6 meses
Puntos: 4
Respuesta: Llenar un maestro-detalle, en gridview, a traves de un procedimiento almac

Me respondo solo:
He aquí muestro el código que hice: Una grilla aspxgridview(devexpress) que la lleno a traves de una llamada a un procedimiento almacenado:

Código:
    Sub RecuperarAutos(ByVal sUsuarioName As String, _
                            ByVal iIdMarca As Integer, _
                            ByVal iRuedas As Integer, _
                            ByVal sColor As String, _
                            ByVal dFecha As DateTime, _
                            ByVal sDetalles As String)
        Dim ws As New misproyectos_vb.ws_Autos.cn_Autos
        Dim oDatos As New DataSet
        Dim sMsError As String = ""
        Dim boResultado As Boolean

        Try
            boResultado = ws.boListarAutosconFiltro(sUsuarioName, _
                                                                iIdMarca, _
                                                                iRuedas, _
                                                                sColor, _
                                                                dFecha, _
                                                                sDetalles, _
                                                                oDatos, _
                                                                sMsError)


            Dim cantidadFilas As Integer = oDatos.Tables(0).Rows.Count
            ASPxGridView_Autos.DataSource = oDatos.Tables(0)
            ASPxGridView_Autos.DataBind()
            ASPxGridView_Autos.KeyFieldName = "id_serie_auto"
            oDatos.Dispose()
            End If

        Catch ex As Exception
            Response.Write(ex.ToString)
        End Try
    End Sub
Este proyecto fue hecho en tres capas. Si alguien quiere mas detalles del código, que no dude en escribir