473,396 Members | 1,982 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,396 software developers and data experts.

RadioButtonList in Nested DataGrid Problem

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
based on parameters passed in.

In my .ASPX page I have created a loop (using <% ..%> blocks) that contains
two different DataGrids. The loop changes parameters for the Dataviews
according to the loops counter and then displays the two different DataGrids
for each pass through the loop.

In the second DataGrid I have a template column that contains a
RadioButtonList control with it's selectedIndex DataBound to a parameter
from the DataBase/Dataset/DataView. The problem is that the ID of the
RadioButtonList gets a unique name generated for each row WITHIN THAT
DATAGRID, but when further DataGrids are generated they are the same set of
ID names. This causes the earlier versions of that datagrid to not display
the SelectedIndex because of the lack of unique ID (I think the last use of
an ID is the only valid one).

<asp:RadioButtonList id="NeedUniqueNameHere" runat="server" ... >

Is there any way to pass in a unique ID for the RadioButtonList from the
..ASPX page?

Do I have to programattically generate DataGrids in the CodeBehing page?

Thanks in advance,

Bob Hoke
Nov 17 '05 #1
0 1787

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

Similar topics

2
by: DelphiBlue | last post by:
I have a Nested Datagrid that is using a data relations to tie the parent child datagrids together. All is working well with the display but I am having some issues trying to sort the child...
3
by: juststarter | last post by:
Hello, I have an aspx file where i've put a placeholder element. On load i create dynamically a table which contains a checkbox and a radiobuttonlist in each tablerow . The radiobuttonlist...
0
by: Empire City | last post by:
I have an ASP.NET form with a DataGrid and Button. I want to put a RadioButtonList in a DataGrid cell. I bind it to an ArrayList which has a ListItem in the cell. The display part works fine. I...
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...
4
by: Emil | last post by:
Can somebody tell me what would be the syntax for having an if statement and setting the selected index of a radiobuttonlist? This is my first project using ASP.net and I use C#. I have a repeater...
0
by: Quinn | last post by:
Hi, I have the same problem as this topic posted ...
2
by: WB | last post by:
Hi, I have the following nested RadioButtonList in my web page that displays a list of cities (categorized in states) for the user to select. There's a RequiredFieldValidator to ensure user has...
0
by: anjupt | last post by:
Hi, I saw different posts in relation to this topic but none of them were able to solve my problem I want to store attendance details of student with the use of radiobuttonlist.The values of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.