473,411 Members | 2,164 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,411 software developers and data experts.

VB-APP: How to insert checkbox value into access database?

9
im prety new so hope u will be patient.
My questione is how to insert DataGridViewCheckBoxColumn value into access database.
when i go like DataGridViewCheckBoxColumn.toString it seems does not work.

i please you once more to have undersatnding

thnx
Dec 23 '07 #1
3 3710
dip_developer
648 Expert 512MB
im prety new so hope u will be patient.
My questione is how to insert DataGridViewCheckBoxColumn value into access database.
when i go like DataGridViewCheckBoxColumn.toString it seems does not work.

i please you once more to have undersatnding

thnx
i dont know your databse......
you have to apply some tric here...........you have to insert 1 or 0[bit operator in sql server] or 'true' or 'false'[simple string variable] or some user-defined text for ComboBox's Checked or UnChecked state.....
Dec 24 '07 #2
manius
9
i dont know your databse......
you have to apply some tric here...........you have to insert 1 or 0[bit operator in sql server] or 'true' or 'false'[simple string variable] or some user-defined text for ComboBox's Checked or UnChecked state.....
jes but how to find is the checkbox value true or false?
if found here same question (or i think)
DataGridView Checkbox - Check Event need to know check status[/url]
but the answer is difficult to understud to me
Dec 24 '07 #3
dip_developer
648 Expert 512MB
jes but how to find is the checkbox value true or false?
if found here same question (or i think)
DataGridView Checkbox - Check Event need to know check status[/url]
but the answer is difficult to understud to me
very simple logic friend........

Expand|Select|Wrap|Line Numbers
  1.  
  2. CheckBox cb = (CheckBox) gridviewrow.FindControl("checkboxID");
  3. if (cb.Checked) // that is when checkbox is checked 
  4. {
  5. // insert 1 (or any string like "true")
  6. }
  7. else // that is when checkbox is unchecked
  8. {
  9. // insert 0 (or any string like "false")
  10. }
  11.  
Dec 26 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Terry | last post by:
Hi, I need some feedback. We are converting to .Net and we are trying to decide on whether to use VB.net or C#.net. As far as our current systems, they will probably be rewritten in ASP.Net. I...
13
by: Arsalan | last post by:
Is there any advantage in C# over VB.NET ? Or the difference is only syntax ? Can anything done in C# which cannot be done in VB.NET?
28
by: Andy | last post by:
Any good resources regarding benefitis by using C3 over VB? /Andy
182
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
2
by: D H | last post by:
Hi, Hi, I was looking for your opinion on VB.NET - its long-term prospects, etc. Sorry this is vague, but it's not meant to be a troll. It's a pro-VB.NET post actually. I haven't used VB or...
19
by: lonelyplanet | last post by:
Hi, I'm studying for 70-306 using the book "MCAD/MCSD Visual Basic .NET Windows Applications" published by McGraw Hill (ISBN: 0-07-212583-7). I found the book has no programming exercise...
62
by: zacks | last post by:
A co-worker where I work is proposing all future code devopment be done in Visual C#. Here is his assessment of VB: VB.NET is hack as far as the CLR(Common Language Runtime) goes. It was...
14
by: John Smith | last post by:
Can someone convert from C# into VB this line for me: if (c is System.Web.UI.HtmlControls.HtmlForm)
111
by: =?Utf-8?B?bWFyaw==?= | last post by:
Fact Poll I made the transition from (Borland) C++ to VB.NET around 2004. I have been happy with the choice. I find I can focus more on the problem and less on being "tidy" with VB. But, I...
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?
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...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.