Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/08/2006, 08:30
Avatar de RootK
RootK
Moderador
 
Fecha de Ingreso: febrero-2002
Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 23 años, 1 mes
Puntos: 50
es obvio que no funciona ese code friend, la primera es porque en tu funcion no estas regresando nada como datasource y 2da estás usando un control dropdownlist dentro de un control (Datagrid) y debes obtener esa referencia mediante el evento ItemDataBound del datagrid.. y podría quedarte de ésta forma:

Cita:
Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid1.ItemDataBound

If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
Dim ddl As DropDownList = CType(e.Item.FindControl("cboOrden"), DropDownList)

For i As Integer = 0 To 10
ddl.Items.Add(New ListItem(i, i))
Next
End If
End Sub
Checalo y cualquier cosa por aqui andaremos..
__________________
Nadie roba nada ya que en la vida todo se paga . . .

Exentrit - Soluciones SharePoint & Net