Ver Mensaje Individual
  #10 (permalink)  
Antiguo 25/06/2004, 05:04
Avatar de GeRuNdIo
GeRuNdIo
 
Fecha de Ingreso: marzo-2004
Ubicación: Sanlúcar de Barrameda, Cádiz
Mensajes: 232
Antigüedad: 20 años, 2 meses
Puntos: 2
Hola!
Tal como te dije en mi ultimo post, he aqui la solución:
Código:
    Private Sub MyDataGrid_ItemDataBound(ByVal sender As System.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 hgc_control As New RadioButtonList


            With hgc_control
                If e.Item.ItemIndex = 0 Then 'Si es la primera fila
                    .Items.Add("Deportes")
                    .Items.Add("Politica")
                    .Items.Add("Sociedad")
                End If
            End With

            e.Item.Cells(1).Controls.Clear()  'Columna a reemplazar 

            e.Item.Cells(1).Controls.Add(hgc_control)

        End If
    End Sub
Eso sí, te aparecerán los radiobutton en la misma celda.....
Prueba lo de SunDarK, creo que siguiendo ese código si en lugar de instanciar checkbox instancias radiobutton te puede funcionar.
Suerte!!
__________________
Una buena forma de sacar las castañas del fuego sin quemarse: LEE FOROSDELWEB..... :si:
------
F.P.R. MCAD .NET