473,396 Members | 1,797 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.

Databinding a check list box

Hi

I have a check box list box on a windows form. How can I data bind it to an
access table. I don't need a multi-tier solution. Just a solution.

Thanks

Regards
Aug 20 '06 #1
3 2013
Hi,

I don't think CheckedListBox supports binding to list sources. You should just acquire the data and fill the Items collection in a
loop.

--
Dave Sexton

"John" <Jo**@nospam.infovis.co.ukwrote in message news:OL**************@TK2MSFTNGP02.phx.gbl...
Hi

I have a check box list box on a windows form. How can I data bind it to an access table. I don't need a multi-tier solution. Just
a solution.

Thanks

Regards


Aug 20 '06 #2
Sorry, how can I acquire the data?

Thanks

Regards

"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:em**************@TK2MSFTNGP06.phx.gbl...
Hi,

I don't think CheckedListBox supports binding to list sources. You should
just acquire the data and fill the Items collection in a loop.

--
Dave Sexton

"John" <Jo**@nospam.infovis.co.ukwrote in message
news:OL**************@TK2MSFTNGP02.phx.gbl...
>Hi

I have a check box list box on a windows form. How can I data bind it to
an access table. I don't need a multi-tier solution. Just a solution.

Thanks

Regards



Aug 20 '06 #3
Hi John,

Use the OleDbConnection class. (FYI, this would be the data tier of your application):

OleDbConnection on MSDN (code example):
http://msdn2.microsoft.com/en-us/lib...onnection.aspx

ConnectionString Property on MSDN (examples of oledb connection strings):
http://msdn2.microsoft.com/en-us/lib...ionstring.aspx

--
Dave Sexton

"John" <Jo**@nospam.infovis.co.ukwrote in message news:uk**************@TK2MSFTNGP05.phx.gbl...
Sorry, how can I acquire the data?

Thanks

Regards

"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message news:em**************@TK2MSFTNGP06.phx.gbl...
>Hi,

I don't think CheckedListBox supports binding to list sources. You should just acquire the data and fill the Items collection in
a loop.

--
Dave Sexton

"John" <Jo**@nospam.infovis.co.ukwrote in message news:OL**************@TK2MSFTNGP02.phx.gbl...
>>Hi

I have a check box list box on a windows form. How can I data bind it to an access table. I don't need a multi-tier solution.
Just a solution.

Thanks

Regards




Aug 20 '06 #4

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

Similar topics

4
by: CGuy | last post by:
Hi, I have an ASPX page which has a datagrid and this datagrid is bound to a Custom Collection. sample code this.DataGrid1.DataSource = UserManager.Users; this.DataGrid1.DataBind();
3
by: MajorTom | last post by:
Hello I need help. I have a datagrid that have a dataview as datasource. in the keyup event of one textbox I use dataview.rowfilter = some.text; when the condition of my rowfilter return...
1
by: oafyuf | last post by:
Hi, I'm trying to learn ASP.NET by doing a pilot project: I have a DataGrid which contains a nested DataList. I want to iterate through the SQLDataReader for the DataGrid and populate each...
2
by: Martin | last post by:
Hi, Please can somebody explain how databinding is done on a checkbox list. I have the follwoing code which I would have thought was enough to databind a checkbox, but apparently not. The...
4
by: dtblankenship | last post by:
Hello everyone, I know this question has been asked many times in the forums, and after spending a few days reading, I am still confused as to the answer. I have a ListBox (lstBox),...
3
by: Kevin Swanson | last post by:
I'm writing what should be a very simple app against an Oracle database. The app has a number of user controls, any one of which is loaded into a main display page using the loadControl method,...
0
by: Kevin Hodgson | last post by:
I have a ComboBox and a TextBox bound to a Dataset/datatable returned from a SQL Database. The databinding is set in Design Mode. Everything works fine on my initial fill, and I get the correct...
5
by: Mark R. Dawson | last post by:
Hi all, I may be missing something with how databinding works but I have bound a datasource to a control and everything is great, the control updates to reflect the state of my datasource when I...
5
by: Dennis | last post by:
I am trying to create a form using databinding to a dataset and one of the fields requires the user to select from a list of optons. Any hints on how to do this other than bind the field to a...
1
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello to all, I want to know if DataBinding in asp.net 2,0 is better than to fill up the values of the controls of the following form: this.miControlTextBox.Text = valorParaControlTextbox; ...
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...
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
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
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...

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.