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
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