Kevin,
>Chen,
>
>>Say I have a Departments Biz Obj, bound to a grid. When a department is selected, Employees of that department are shown in another grid, which is for navigating purpose only – editing are done in a set of TextBoxes, ComboBoxes …
>>
>>One of the ComboBox displays a list of all the departments, allowing an employee to be transferred to a different department. The department combobox and the department grid share the same Biz Ojb as data source.
>>
>>I can select a different department. However, the department cannot be saved – after hitting the save button, the department combobox returns to the department selected in the department grid.
>
>It sounds like the Departments business object is used to fill both the grid and the combo box. This shouldn't be a problem. The real issue is which business object you have specified for the combo box's BindingValueSource business object. This object specifies the currently selected value in the combo box. If I understand your scenario correctly, the BindingValueSource property should be bound to the Employee business object, and the BindingValueSourceMember property should be bound to the Employee Department field.
>
>Regards,
You understood everything correctly. And I did set the ComboBox as you described. I should mention that the Employees bussiness object is registered as child of Departments bussiness object.
I even tried to creat another bussiness object called DepartmentLookUp to be used as the data source for the department combobox. Even this failed!
regards,
Chen Nan