Este es un link permanente de
|
24/04/2008 12:37:20
|
|
RE: Traducir codigo C# a VB
|
|
|
|
|
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.
|
|
|