Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Data Binding / October 2004

Tip: Looking for answers? Try searching our database.

Value cleared when changing other control.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andr? Barendse - 28 Oct 2004 13:44 GMT
Hi all,

I have a problem using databinding on a windows form.

On the form I have a typed DataRow.

DataRow type:

Name              String

Blocked          Boolean

On the form I have two control a Label and a CheckBox.

The databinding is added with the following code:

this.Label.DataBindings.Add(new Binding("Text", this.mDataRow, "Name"));

this.CheckBox.DataBindings.Add(new Binding("Checked", this.mDataRow,
"Blocked"));

When I edit the value of the text property of the Label control there is no
problem. This value is saved to the DataRow.

When I edit the value of the checkbox, the value of the Text property of the
Label control is cleared / reset to a empty string.

Am I missing something?

Any help will be great.

Thanks,

Andr? Barendse
Scave - 28 Oct 2004 23:30 GMT
I don't think I know enough to answer yet but if you post some code
that demonstrates your problem I'll have another look.

"André Barendse" <abarendse@kabelfoon.nl> wrote in message news:<4180e9cb$0$243$58c7af7e@news.kabelfoon.nl>...
> Hi all,
>
[quoted text clipped - 30 lines]
>
> André Barendse

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.