Winforms checkbox Databinding problem

Posted by Savvas Sopiadis on Stack Overflow See other posts from Stack Overflow or by Savvas Sopiadis
Published on 2010-04-17T17:47:11Z Indexed on 2010/04/17 17:53 UTC
Read the original article Hit count: 608

Hello everybody!

In a winforms application (VB, VS2008 SP1) i bound a checkbox field to a SQL Server 2005 BIT field.

The databinding itself seems to work, there is this litte problem:

user creates a new record and checks the checkbox, then the user decides to create a new record (without having saved the previous, so there are 2 new records to be submitted) and checks also the second.

Now the user decides to save these records: the result is that only the second record keeps the checked value, the first one is unchecked! (i tried the same with 5 records: the result is the same, the first 4 records are unchecked and only the last one keeps the checked state).

What do i miss??

Thanks in advance

© Stack Overflow or respective owner

Related posts about winforms

Related posts about databinding