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

Bug i VS? Datagridview + checkbox = error

157 100+
So this is my problem, which i have worked on for waaay to many hours now.

I have Visual Studio 2010, an SQL express server, and i am trying to write a simple database program.

I have a table on the SQL server, tbl_todo. This table contains some fields, some are date, int and 1 field which is bugging me, which is a bit field.

I make a dataset to this table alone, using just the default optios on the wizard in VS. I then drag the datagridview-control from the dataset over to my form. Everything looks fine like it has worked on xx other forms. But when i open it, and try to change the value of the checkbox and then save, VS gives me an error: "Update requires a valid UpdateCommand when passed DataRow"

The ting is i come to understand that this is a cryptic error message bound to error with format when saving data to SQL server. But the ting is that my setup here is totally default and everything looks. It loads right, and when i go into the table directly from managment studio i can save changes without problem.

Please help :=)
Jun 22 '11 #1
0 1001

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

Similar topics

1
by: michael schindler | last post by:
hi there i have tried do use the new DataGridView of the Framework 2.0. i use the new DataGridViewCheckBoxColumn Somehow i don't know how to read if a checkbox is checked or not. For example in...
2
by: Kiran_Juikar | last post by:
How to add the header checkbox in the datagridview checkbox column? Is there any property available to add a header checkboxor one need to write the custom logic for this?
9
by: obrienkev | last post by:
Hi, I have a Checkbox column in the DataGridView. I am unable to change the state of the checkbox. Why is this??? What do I need to set in Properties? Using Visual Studio 2005
2
by: mrstrong | last post by:
Gday, I have a datagridview that I am creating the columns programatically which all seems to work fine. I have a couple of dropdown boxes, so I have set the editMode= EditOnEnter. Now my...
1
by: zacks | last post by:
Using VS 2005. I have an app that has a DataGridView control. This control has two columns, the first column is a standard TextBox, and the second column is a CheckBox. I am having difficulty...
1
by: QuickBooksDev | last post by:
VB.NET 2005 DataGridView Checkbox - Check Event need to know check status I would like to use the DataGridView Checkbox like a normal checkbox. When someone clicks on it I would expect that I...
2
by: =?Utf-8?B?S2lt?= | last post by:
foreach (DataGridViewRow row in this.dataGridView.Rows) { if (row.Cells.Value.ToString() == "true") { return true; } } return false;
2
by: Cdude | last post by:
Please help.How can i catch the event when a checkbox is checked on the datagridview. thanks
4
by: Benysh | last post by:
Hi everyone. I'm having a really annoying problem I can't solve and couldn't find an answer to anywhere, let's see if you got what it takes. I have a dataGridView on a C# Windows Form. Unbound....
2
by: Benniit | last post by:
Am using vb.net 2008 and sql2008 and I want to loop thru frmMovement.DataGridView1 and the checked rows shd get populated into frmMovementReceivedFiles.DataGridView2. But I used Cbool,...
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?
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
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
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.