 
			
				20/04/2012, 17:56
			
			
			     |  
      |    |    |    Fecha de Ingreso: junio-2011  
						Mensajes: 329
					  Antigüedad: 14 años, 4 meses Puntos: 2     |        |  
  |      Seleccionar 1 solo checkbox        Tengo un gridview con un itemtemplate , el cual tiene un checkbox, como le puedo hacer para que me valide o me limite a que solo me deje seleccionar 1 solo checkbox en el grid..se puede hacer eso..?..saludos y gracias   
este es mi codigo   
For Each row As GridViewRow In GridView1.Rows 
            Dim elcheckbox As CheckBox = DirectCast(row.FindControl("Checar"), CheckBox)   
            If elcheckbox.Checked Then 
                'servicio 
                'TextBox22.Text += String.Format("{0}", GridView1.DataKeys(row.RowIndex).Value) 
                DropDownList12.Items.Add(String.Format("{0}", GridView1.DataKeys(row.RowIndex).Value))   
                '-------------------------llenar drop 
                Dim item As New ListItem() 
                item.Text = Server.HtmlDecode(row.Cells(1).Text) 
                '& " " & _ 
                '               Server.HtmlDecode(row.Cells(3).Text)   
                'If Not ListBox1.Items.Contains(item) Then 
                If Not DropDownList14.Items.Contains(item) Then   
                    DropDownList14.Items.Add(item) 
                    'ListBox1.Items.Add(item) 
                End If 
                'End If           |