New Posts New Posts RSS Feed: Is there a quick and easy way to bind 1 single entity to controls that are on the form
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

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

 Post Reply Post Reply
Author
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Topic: Is there a quick and easy way to bind 1 single entity to controls that are on the form
    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.


Edited by Customer - 12-Jul-2007 at 10:17am
Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post 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).

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down