473,399 Members | 3,038 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,399 software developers and data experts.

CheckBoxList.OnDataBinding

I'm still on .Net 1.1 if that makes a difference.

I have a CheckBoxList in my application that I want to use a
OnDataBinding event to do some conditional changes to the labels at run
time.

I've done this a bit with DataGrids and figured this would be the same
or very similar. It seems as though it's not.

In the Sub I created I'm trying to get to stuff like e.item.dataitem as
I would with a datagrid, but Intellisense isn't showing me the way.

So my first question is can I do this?
If so, then my second question is how?

Thanks!

Matt
Apr 26 '07 #1
2 3023
checkboxlists don't have databinding events.

-- bruce (sqlworkk.com)

MattB wrote:
I'm still on .Net 1.1 if that makes a difference.

I have a CheckBoxList in my application that I want to use a
OnDataBinding event to do some conditional changes to the labels at run
time.

I've done this a bit with DataGrids and figured this would be the same
or very similar. It seems as though it's not.

In the Sub I created I'm trying to get to stuff like e.item.dataitem as
I would with a datagrid, but Intellisense isn't showing me the way.

So my first question is can I do this?
If so, then my second question is how?

Thanks!

Matt
Apr 26 '07 #2
Well I guess that clears it up. I'll take a different approach. Thanks!

Matt

bruce barker wrote:
checkboxlists don't have databinding events.

-- bruce (sqlworkk.com)

MattB wrote:
>I'm still on .Net 1.1 if that makes a difference.

I have a CheckBoxList in my application that I want to use a
OnDataBinding event to do some conditional changes to the labels at
run time.

I've done this a bit with DataGrids and figured this would be the same
or very similar. It seems as though it's not.

In the Sub I created I'm trying to get to stuff like e.item.dataitem
as I would with a datagrid, but Intellisense isn't showing me the way.

So my first question is can I do this?
If so, then my second question is how?

Thanks!

Matt
Apr 27 '07 #3

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

Similar topics

4
by: dm_dal | last post by:
Is there a know issue surrounding the CheckBoxList control and it's viewstate? When my control is created, it's ListItems are checked as needed, but on a postback, they loose their Selected...
4
by: Shaul Feldman | last post by:
Hello, I have something really awkward at work - fighting with CheckBoxList... How can I define CSS for ListItem in CheckBoxList programmatically. I add CheckBoxList's Items on the fly, something...
0
by: D. Shane Fowlkes | last post by:
OK - I'm looking for the best approach on how to do this. I have a form page where the user can edit their "Profile" (data) which is in SQL Server. It's your basic company information - address,...
0
by: D. Shane Fowlkes | last post by:
OK - I'm looking for the best approach on how to do this. I have a form page where the user can edit their "Profile" (data) which is in SQL Server. It's your basic company information - address,...
0
by: MattB | last post by:
The relates to my question earlier about how to format labels in a CBL (CheckBoxList) to not wrap. I think I've found an approach that will probably work when I can figure out how to refer to a...
5
by: Patrick.O.Ige | last post by:
I'm binding a CheckBoxlist below in the ItemDataBound(the CheckBoxList is in a Datalist) By doing "li.Selected = True" i can see all the checkBoxes are selected. But what i want is to be able...
4
by: Patrick.O.Ige | last post by:
I have a CheckBoxList in a DataList and i'm trying to get item Selected after doing a postBack. I have set my CheckBoxlist AutoPostBack="True" Any ideas what 'm doing wrong? It seems not to...
2
by: rn5a | last post by:
Consider the following code: <script runat="server"> Sub ShowData(obj As Object, ea As EventArgs) lblDate.Text = DateTime.Now.ToString("d") lblDate.DataBind() End Sub </script> <form...
6
by: dbuchanan | last post by:
There are three parts to this 1.) How do I cascade menus? 2.) And, how do I cascade menus with a multi-select CheckBoxList?
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...
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
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
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
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...
0
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...

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.