One DataSource for multiple controls

后端 未结 4 733
孤独总比滥情好
孤独总比滥情好 2021-01-18 13:47

I have two ListBox in my winforms application, I assigne a datasource for both of them as follow:

private void MakeMeasurementUnits()
{
    var          


        
4条回答
  •  孤独总比滥情好
    2021-01-18 14:18

    This is correct behaviour. The datasource management in WindowsForms keeps track of the selected item on control and manipulates binded data too.

    The resolution you've found already: is assign 2 different data sources objects to these controls.

提交回复
热议问题