CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    282

    ComboBox and dataBinding

    Is it possible to bind the possible values to a List and bind also the actual value to a property of an other class (bind in the same way as in TextBox.DataBinding)...

    Regards
    hansjörg

  2. #2
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    Re: ComboBox and dataBinding

    Yes..
    to bind to a list: Set the DataSource, ValueMember , and DisplayMember properties.
    Then bind the object's property value by adding it to the ComboBox's DataBinding collection.
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

  3. #3
    Join Date
    Dec 2005
    Posts
    282

    Re: ComboBox and dataBinding

    Thanks for your help!!!
    Regards
    Hansjörg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured