473,511 Members | 14,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying and selecting a group of rows

Hi.

I have a data table where rows are grouped according to a certain criteria
and I want to be able to display all the rows that belong to the same group
together on the screen. In addition, I want to provide the user with a way of
selecting a single group. A radio button is the obvious choice, but other
suggestions will be welcome.

For example, the following is what I want to build:

item a
radio button item b
item c
------------------------------
item k
radio button item l
------------------------------
item x
radio button item y
item z
item w
------------------------------
How do I do it? Repeater, GridView, other?
Nov 19 '05 #1
2 2036
Repeater should be fine. Bind it to the sorted table of items. Make an item
template with a radio button. In PreRender event loop through the repeater
items and detect the first item for every group. For this item make the
radio button visible, for all other items hide it.

Eliyahu

"Mike Kelly" <Mi*******@community.nospam> wrote in message
news:06**********************************@microsof t.com...
Hi.

I have a data table where rows are grouped according to a certain criteria
and I want to be able to display all the rows that belong to the same group together on the screen. In addition, I want to provide the user with a way of selecting a single group. A radio button is the obvious choice, but other
suggestions will be welcome.

For example, the following is what I want to build:

item a
radio button item b
item c
------------------------------
item k
radio button item l
------------------------------
item x
radio button item y
item z
item w
------------------------------
How do I do it? Repeater, GridView, other?

Nov 19 '05 #2
One possible implementation is using a datalist and radio buttons as I did
in this sample http://www.societopia.net/Samples/Da...Hierarchy.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Mike Kelly" wrote:
Hi.

I have a data table where rows are grouped according to a certain criteria
and I want to be able to display all the rows that belong to the same group
together on the screen. In addition, I want to provide the user with a way of
selecting a single group. A radio button is the obvious choice, but other
suggestions will be welcome.

For example, the following is what I want to build:

item a
radio button item b
item c
------------------------------
item k
radio button item l
------------------------------
item x
radio button item y
item z
item w
------------------------------
How do I do it? Repeater, GridView, other?

Nov 19 '05 #3

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

Similar topics

2
1611
by: middletree | last post by:
I tried posting this to the SQL Server programming group, but then thought more about it, and thought it was more of an ASP question. If you want the original long description, it's below. But the...
19
3670
by: Ben Gribaudo | last post by:
Hello! I am trying to query a MySQL table and retrieve either the earliest or the latest message in each thread. The messages are in a table with MsgID being the primary key and fThreadID...
4
1596
by: remote89 | last post by:
Hi experts, I have been trying to limit the table rows in the following situation, any suggestions will be appreciated. we have table called tempTb has columns id, c_id, c_name, rating, date...
48
3812
by: phillip.s.powell | last post by:
MySQL 3.23.58 - 4.0.17 (yep, several database server instances, don't ask) I have database Spring with table Students I have database Summer with table Students I am tasked to produce a...
1
3974
by: Ralf | last post by:
Hi, i try to find a query for selecting one arbitrarily chosen row from each group of rows. Example: $ db2 "select * from T" A B C
2
2968
by: Tyler | last post by:
I need to have a form that displays a group of 20 pictures in 4 rows of 5 pictures. The pictures are of people. Each Subject record has a picture field. I have a query written that selets the...
7
1696
Chrisjc
by: Chrisjc | last post by:
have one page that has a drop down menu, once the user selects the desired option it will then pass the selected value to a 2nd drop down. Once they select there next option I pass that value... Now...
2
1402
by: Bill Fuller | last post by:
I have a dropdown combo box where the DataSource is bound to a CSLA BO returned from a WCF call. The dropdown list looks fine, but selecting an item returns...
7
4647
by: swami | last post by:
What is the query for selecting non duplicate elements for eg: no name age 1 siva 28 2 blair 32 3 mano 28 i want to select blair which hasn't got any duplicate...
1
7093
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...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.