Print Page | Close Window

Is there a quick and easy way to bind 1 single entity to controls that are on the form

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=130
Printed Date: 04-May-2025 at 3:24am


Topic: Is there a quick and easy way to bind 1 single entity to controls that are on the form
Posted By: Customer
Subject: Is there a quick and easy way to bind 1 single entity to controls that are on the form
Date Posted: 12-Jul-2007 at 10:13am
Is there a quick and easy way to bind 1 single entity to controls that are on the form. I have bound using the ControlBindingManager when I have an EntityList but is there a way for a single entity. I have used the following code for text boxes mQuestionTextBox.DataBindings.Add(new Binding("Text", mQuestion, "Question"));. But, can't figure out ComboBoxes and CheckBoxes.



Replies:
Posted By: IdeaBlade
Date Posted: 12-Jul-2007 at 10:24am

Don’t try to bind to a single entity.  It doesn’t (usually) work.

Bind to an EntityList instead (even if it has only a single entity).




Print Page | Close Window