473,385 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Selectedindexchanged of a radiobuttonlist inside a datagrid?

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dominic | last post by:
Hi guys, I'm not sure if this question belongs to FAQ, but I couldn't find a concrete answer. I created a Datagrid control using ItemTemplate, but it's NOT a in-place editing datagrid. One of...
0
by: Bob Hoke | last post by:
I am trying to do some of the things we used to do in classic ASP that required some pretty ugly loops in the .ASP page. I have two different DataSets that each have a DataView that I can change...
1
by: Tim | last post by:
I have a RadioButtonList inside the EditItemTemplate of a Datagrid. On the Edit command of the datagrid I am calling the following command: public void dgNodeBranches_Edit(object sender,...
5
by: DotNetGruven | last post by:
Anyone have any pointers on how to set the Value and Selected attributes in a ListItem in a RadioButtonList that is in a DataGrid? Here's what I have ------DataGrid------ -- BoundColumn 0 --...
6
by: DotNetGruven | last post by:
I have a webform that has a DataGrid on it with a RadioButtonList in each row. It is a simple On & Off. When the User Clicks on either of the RadioButtons, I need to postback to the server and...
1
by: Edward | last post by:
I am having a terrible time getting anything useful out of a listbox on my web form. I am populating it with the results from Postcode lookup software, and it is showing the results fine. What...
1
by: Mervin Williams | last post by:
I have a radiobuttonlist object that is bound to a dataview. Although I select different options, the SelectedIndexChanged() method does not fire. Does anyone have any ideas as to why this is...
0
by: Luis Esteban Valencia | last post by:
Hello I have a datagrid and in a column on the Item template I placed a radiobuttonlist with 3 options. At the side of the radiobuttonlist there must be a label. If you select optcion 1. there...
7
by: sparkle | last post by:
Hi Everybody, I'm filling a combobox from a class, which works fine on it's own. But when I insert code to fill in other controls something in the combobox fill is causing the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.