Este es un link permanente de RE: Traducir codigo C# a VB.
Puedes volver a ver el tema completo o ir al Acceso y trabajo con datos
24/04/2008 12:37:20
Indigo Hombre
Fecha de registro: 26/07/2007
1 post en este tema
29 posts en acceso y trabajo con datos
326 posts en todos los foros
RE: Traducir codigo C# a VB
Responder  Citar
Hola,

¿Y qué parte te falla?

Creo que con algo así debería funcionarte

    Protected Sub gvCustomers_RowCreated(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles gvCustomer.RowCreated
        If (e.Row.RowType = DataControlRowType.DataRow) Then
            Dim ctrl As SqlDataSource = e.Row.FindControl("sqlDsSubGrupos")
            If ((Not ctrl Is Nothing And (Not e.Row.DataItem Is Nothing)) Then
                ctrl.SelectParameters["CustomerID"].DefaultValue = CType(e.Row.DataItem, DataRowView)("OBJECT_ID").ToString()
            End If
        End If
    End Sub

Saludos.



Visita mi Blog