473,385 Members | 1,341 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,385 software developers and data experts.

Checkboxes databinding

TS
I appreciate all the help I got from this newsgroup regarding my problem with
binding check boxes to a datatable, but nothing worked!!! I really, really
need to read articles about this subject "binding check boxes to a
datatable". This piece represents a big chunk of the application I'm
developing now and I'm totally stuck!! Are there any white papers/
articles/books about that? Please help!!!!!!!!
--
TS
Nov 23 '05 #1
1 5718
Dear TS,

You can databind do a checkbox this way:

CheckBox.DataBindings.Add("Checked", dataSource, "Member")

where "Member" is a boolean (or an integer: 0/1), like: "Customers.IsHappy"

Hope this helps,

Michel van den Berg
--
== Remove nospam to email me ==

"TS" <TS@discussions.microsoft.com> schreef in bericht
news:B7**********************************@microsof t.com...
I appreciate all the help I got from this newsgroup regarding my problem
with
binding check boxes to a datatable, but nothing worked!!! I really, really
need to read articles about this subject "binding check boxes to a
datatable". This piece represents a big chunk of the application I'm
developing now and I'm totally stuck!! Are there any white papers/
articles/books about that? Please help!!!!!!!!
--
TS

Nov 23 '05 #2

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

Similar topics

2
by: Pete | last post by:
There is a Summary/Example further down... On page one of my site I have a form with some checkboxes and detailed descriptions. When the form is submitted (to page two), the values of the...
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,...
4
by: Maarten | last post by:
i have the folowing code to setup my datagrid collumns Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load gridsetup() end sub
13
by: Mike | last post by:
My form has multiple checkboxes. The user can select any number of these checkboxes (including none). I have a table in my DB that would have one entry per checkbox if the checkbox has been...
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
7
by: Hardik Shah | last post by:
Hi there i'm trying to bind a checkbox and some date time picker fields to a dataset. this is wat i have tried for the check box but it doesnt seen to work ...
10
by: rn5a | last post by:
All the rows in a DataGrid, including the Header, are accompanied with a CheckBox. I want that when the CheckBox in the Header is checked, then all the CheckBoxes should automatically get checked....
8
by: Dirk | last post by:
Hello, I have a problem to use databinding with my business layer classes. My data class does not have simple properties (string, int or datetime), instead, all my properties are objects of the...
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; ...
2
by: John Q | last post by:
Hello, Does anyone know any working Multiselect Dropdownlist that uses Checkboxes? Environment is ASP.NET and language C#. I would be very appreciated if someone would give some links to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.