By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,017 Members | 1,169 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,017 IT Pros & Developers. It's quick & easy.

Selectedindexchanged of a radiobuttonlist inside a datagrid?

P: n/a
http://www.codeproject.com/aspnet/Da...sp#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
--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.