Data-bound comboboxes refusing to release focus

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wingot

    #1

    Data-bound comboboxes refusing to release focus

    Hey,

    I have a view to a database that I have created for Client Maintenance. It has
    a number of fields, but the important ones are Medical Condition, Bill To, and
    Country.

    I have a couple of external tables: One for Countries that store each Country
    as a ID (char(2)), and Name (varchar(50)) pair; One for Medical Conditions,
    using ID (int) and Name (varchar(50)). Also, the BillTo field refers back to
    the same table that is being displayed, although using another BindingSource.

    What I have found is that, when I link up the datasource, display member,
    value member, and selected value using the appropriate values, the comboboxes
    have the correct values, and can be set to these perfectly fine. However, both
    the Medical Condition and the BillTo comboboxes, once the value is changed,
    refuse to release the focus. The intriguing thing is that the Country combobox
    does work perfectly fine, and this value can be changed and then lose focus,
    and can even be saved, without issue. Hence I can't see why the exact same
    process is not working for BillTo and Medical Condition

    The only difference I can see is that the Value field of the datasource is an
    integer for the two that are failing but char values for the Country, but I
    would think this would only cause a problem on saving.

    Has anyone come across this issue and able to give advice as to the problem?

    Regards,
    Wingot

  • Linda Liu[MSFT]

    #2
    RE: Data-bound comboboxes refusing to release focus

    Hi Wingot,

    Based on my understanding, you bind three ComboBoxes in the same way but
    only one ComboBox works properly and the other two ComboBoxes refuse to
    release the focus once the selected value is changed. If I'm off base,
    please feel free to let me know.

    From the above phenomenon, it looks like the two ComboBoxes don't pass the
    validation. Have you handled the Validating event of the two ComboBoxes and
    set the CancelEventArgs .Cancel property to false under some conditions?

    If the problem still exists, please send me a simple project that could
    just reproduce the problem. To get my actual email address, remove 'online'
    from my displayed email address.

    Sincerely,
    Linda Liu
    Microsoft Online Community Support

    =============== =============== =============== =====
    Get notification to my posts through email? Please refer to
    http://msdn.microsoft.com/subscripti...ult.aspx#notif
    ications.

    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at
    http://msdn.microsoft.com/subscripti...t/default.aspx.
    =============== =============== =============== =====

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Comment

    • Linda Liu[MSFT]

      #3
      RE: Data-bound comboboxes refusing to release focus

      Hi Wingot,

      How about the problem now?

      If the problem is still not solved, please feel free to let me know.

      Thank you for using our MSDN Managed Newsgroup Support Service!

      Sincerely,
      Linda Liu
      Microsoft Online Community Support

      Comment

      Working...