Selectedindexchanged of a radiobuttonlist inside a datagrid?

  • Thread starter Luis Esteban Valencia
  • Start date
L

Luis Esteban Valencia

http://www.codeproject.com/aspnet/DataGridCCEvents.asp#xx1009236xx
Read this first and see if you can help me

have tried but the Intelisense of the radiobuttonlist doestn have the event
selectedindexchanged?

I have a datagrrid with an itemtemplate, inside this itemtemplate thre is a
radiobuttonlist with 3 options. There is also a label to the side of this
radiobuttonlist.

When the user selects anyradiiobutton list the label must update with an
informative message depending of what the user selected!!!

<ItemTemplate>
<asp:RadioButtonList id="seleccion" runat="server" Width="42px"
RepeatDirection="Horizontal">
<asp:ListItem Value="0" Selected="True">0</asp:ListItem>
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3">3</asp:ListItem>
</asp:RadioButtonList>
<asp:Label id="lblmeta" runat="server"></asp:Label>
</ItemTemplate>

On the itemcreated I tryed to follow the example

Private Sub dgPreguntas_ItemCreated(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
dgPreguntas.ItemCreated
Dim elemtype As ListItemType = New ListItemType
elemtype = e.Item.ItemType

If elemtype = ListItemType.AlternatingItem And elemtype =
ListItemType.Item Then
Dim rdl As New RadioButtonList


rdl = CType(e.Item.FindControl("seleccion"), RadioButtonList)
' Here the intellisense doesnt down rdl.SelectedIndexchanged



End If


End Sub

Please Help me
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top