Ask a Question related to ASP.NET General, Design and Development.
-
Bob Hoke #1
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
Bob Hoke Guest
-
Problem: Binding a datatable to RadioButtonList inside a DataGrid
Hi, I would like to do this (see below) but keep getting error. Any help is appreciated. thanks. I have a datagrid which display a search from... -
RadioButtonList within DataGrid
Hi. I'm trying to make a datagrid with a RadioButtonList on each row: <asp:TemplateColumn HeaderText="Action"> <ItemTemplate>... -
RadioButtonList In DataGrid
Hi all! I have a page that gets a list of users from a database and puts them into a DataGrid. The DataGrid is editable. In Edit Mode of the... -
Retrieving radiobuttonlist from datagrid
If you are creating the radio button dynamically in databound event.. Then you should make sure that the grid is bound before the viewstate is... -
Datagrid - dynamic radiobuttonlist problems...
Hi, I have a regular datagrid named dgTest For each row in dgtest I have added a dynamic radiobuttonlist (each with the same options) with a...



Reply With Quote

