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

databinding radio buttons

I have a group of three radio buttons on a group box. In
my database I have three columns all of data type bit. I
want to bind each button so that if it is 1 then it
selects the appropriate button. Currently I have the
checked property of each radio button bound to the field
in the data source and the dataset fills without a
problem. But when I call the addnew method of the binding
manager base, it doesn't add a new record. It doesnt give
me an error and the count proerty of the bmb is
incremented, but the position property doesn't point to
the supposed new blank record. After further
investigation I discovered that a new row in the datatable
was not added and the problem is caused by the way I have
bound my radio buttons. Why don't radio buttons have the
checkstate property like the check boxes? What other
property of the radio button can I bind that acts like the
checkstate. Thanks for your help!
Nov 20 '05 #1
2 2484
DataBindings -> Advanced -> Checked Property
"Pauly" <an*******@discussions.microsoft.com> wrote in message
news:10****************************@phx.gbl...
I have a group of three radio buttons on a group box. In
my database I have three columns all of data type bit. I
want to bind each button so that if it is 1 then it
selects the appropriate button. Currently I have the
checked property of each radio button bound to the field
in the data source and the dataset fills without a
problem. But when I call the addnew method of the binding
manager base, it doesn't add a new record. It doesnt give
me an error and the count proerty of the bmb is
incremented, but the position property doesn't point to
the supposed new blank record. After further
investigation I discovered that a new row in the datatable
was not added and the problem is caused by the way I have
bound my radio buttons. Why don't radio buttons have the
checkstate property like the check boxes? What other
property of the radio button can I bind that acts like the
checkstate. Thanks for your help!

Nov 20 '05 #2
I guess I wasn't clear...I HAVE the checked property bound
now, but it causes problems when I use the addnew method
of bmb. I want something similar to checkstate of the
checkbox, but binding the checked property of the radio
button DOES NOT act the same way.
-----Original Message-----
DataBindings -> Advanced -> Checked Property
"Pauly" <an*******@discussions.microsoft.com> wrote in messagenews:10****************************@phx.gbl...
I have a group of three radio buttons on a group box. In my database I have three columns all of data type bit. I want to bind each button so that if it is 1 then it
selects the appropriate button. Currently I have the
checked property of each radio button bound to the field
in the data source and the dataset fills without a
problem. But when I call the addnew method of the binding manager base, it doesn't add a new record. It doesnt give me an error and the count proerty of the bmb is
incremented, but the position property doesn't point to
the supposed new blank record. After further
investigation I discovered that a new row in the datatable was not added and the problem is caused by the way I have bound my radio buttons. Why don't radio buttons have the checkstate property like the check boxes? What other
property of the radio button can I bind that acts like the checkstate. Thanks for your help!

.

Nov 20 '05 #3

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

Similar topics

1
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there...
2
by: Jeff | last post by:
I'm trying to create a dynamic form that can have multiple groups of radio buttons (each group has two buttons) with the same name. Essentially, the form allows a user to enter as many names as...
4
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1 value=3> <br> <input type="radio" name=p2 value=1>...
6
by: Craig Keightley | last post by:
I have a page that has n number of radio groups (yes/No) how can i prevent the form being submitted if more than one radio group is not selected? By default all radio groups are unchecked ...
2
by: Rob | last post by:
Hi all, I've got multiple sets of radio button that are dynamically created in code and populated by a database query. The query returns about 20 recordsets with 3 radio buttons per recordset and...
2
by: James P. | last post by:
Help, I need to display radio buttons on a form. The data is from SQL table: each row in each table is displayed as a radio button. I have multiple SQL tables so I understand I need to put...
1
by: kenny8787 | last post by:
Hi, can anyone help here? I have the following code generated from a database, I want to have javascript calculate the costs of the selected items using radio buttons, subtotal the costs and...
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
4
by: Blasting Cap | last post by:
I have a page that has a number of radio buttons that will be displayed to different access levels of a user who logs in to my website. For instance, if there are a dozen buttons, user1 will see...
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:
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.