473,499 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Customised web controls in a data list/repeator

Hi there,

I have a set of products each of which has attributes (color size etc), is
it possible to use a data list or repeator to display all the items and
provide combo box with a unique set of attributes in each list/repeator item
as a sort of sub query.

Thanks for any help,

Steve

Nov 18 '05 #1
2 1438
Sure, do it in the itemdatabound event. First place an empty radiobutton list where you want it to appear.

then in ItemDataBound, you'll need to do something like this (This example is for a datagrid, but a datalist/repeater shouldn't be much different)

If e.Item.ItemType <> ListItemType.Header AND _
e.Item.ItemType <> ListItemType.Footer then
Dim rbl as RadioButtonList = e.Item.Cells(0).Controls(0) 'the hard part is figuring out exactly where the radiobuttonlist is in the mess

rbl.datasource = "whatever"
...
rbl.databind
End If

"Steve Lloyd" <st****************@livenowpaylater.co.uk> wrote in message news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi there,

I have a set of products each of which has attributes (color size etc), is
it possible to use a data list or repeator to display all the items and
provide combo box with a unique set of attributes in each list/repeator item
as a sort of sub query.

Thanks for any help,

Steve


Nov 18 '05 #2
Shall give that a go, thanks
"Raterus" <ra*****@spam.org> wrote in message
news:ez**************@TK2MSFTNGP09.phx.gbl...
Sure, do it in the itemdatabound event. First place an empty radiobutton
list where you want it to appear.

then in ItemDataBound, you'll need to do something like this (This example
is for a datagrid, but a datalist/repeater shouldn't be much different)

If e.Item.ItemType <> ListItemType.Header AND _
e.Item.ItemType <> ListItemType.Footer then
Dim rbl as RadioButtonList = e.Item.Cells(0).Controls(0) 'the hard
part is figuring out exactly where the radiobuttonlist is in the mess

rbl.datasource = "whatever"
...
rbl.databind
End If

"Steve Lloyd" <st****************@livenowpaylater.co.uk> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi there,

I have a set of products each of which has attributes (color size etc), is
it possible to use a data list or repeator to display all the items and
provide combo box with a unique set of attributes in each list/repeator item as a sort of sub query.

Thanks for any help,

Steve

Nov 18 '05 #3

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

Similar topics

1
3323
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
3
2450
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a...
2
2044
by: Alfredo Barrientos | last post by:
Hi, I have been reading information about asp.net webcontrols, and i have found a term "List bound controls". What are "List Bound Controls"?? Which are the differences between these controls...
1
1063
by: muthu | last post by:
Hi freinds, Iam using repeator control in my application.The code behind is vb.net. I have n number of rows and 5 columns in the repeator control.In the ItemDataBound event of the repeator...
0
343
by: muthu | last post by:
Hi guys, Iam using a repeator control in my page.In wich i have dropdown list as the last column.I have a label in the first column.Now i have binded a datable to the repeator in the page load...
2
2092
by: NH | last post by:
Is it possible to create a gridview control that allows scrolling on the columns. I have a gridview with a list of people names in the first column and the rest of the columns are week dates...
15
3590
by: mc | last post by:
I'm writing an app for managing Task Lists, I'm trying to add some controls to a form that I can use to link tasks, my original intention was to: - Add two list boxes, one listing "all Tasks"...
0
833
by: koonda | last post by:
Hi all, I have been working on a "web interface" project but I am unable to get it working. Here is what I want to implement. I have been trying to bind the 5 Listbox controls to a single Repeator...
12
1579
by: Bob Jones | last post by:
I have an odd business requirement and I think that the implementation is not correct in the terms of OOP development. Any help on the concepts would be very appreciated! We currently have a...
0
7131
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7007
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
7220
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...
1
6894
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
7388
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...
1
4919
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
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
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 ...
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.