sync combo boxes in datagridview

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?UmVkYmFjaw==?=

    #1

    sync combo boxes in datagridview

    Hi All,
    slight problem I hope someone could shed some light on.

    I am using VS 2005.

    In a datagridview I have 2 comboboxes that are both bound to a table field
    called "empCode". This is an employee code.

    I have a lookup datatable which I populate Employees employee code (empcode)
    and and employee name.

    I then have a dataview and a bindingsource which are bound to this datatable.

    I then bind the two combo boxes to the bindingsource (ie they are both bound
    to the same BS).

    Now, when the user selects a value in the combo box in the datagridview, I
    would expect the other combo box to move to the same value and display it.

    This does not work however. Can anyone recommend a way?

    thanks
  • RobinS

    #2
    Re: sync combo boxes in datagridview

    Can you show your code for doing the bindings?

    Robin S.
    -----------------------------------------------------
    "Redback" <Redback@discus sions.microsoft .comwrote in message
    news:7E252D63-8118-4F6A-A83A-1946A714439E@mi crosoft.com...
    Hi All,
    slight problem I hope someone could shed some light on.
    >
    I am using VS 2005.
    >
    In a datagridview I have 2 comboboxes that are both bound to a table
    field
    called "empCode". This is an employee code.
    >
    I have a lookup datatable which I populate Employees employee code
    (empcode)
    and and employee name.
    >
    I then have a dataview and a bindingsource which are bound to this
    datatable.
    >
    I then bind the two combo boxes to the bindingsource (ie they are both
    bound
    to the same BS).
    >
    Now, when the user selects a value in the combo box in the
    datagridview, I
    would expect the other combo box to move to the same value and display
    it.
    >
    This does not work however. Can anyone recommend a way?
    >
    thanks

    Comment

    Working...