更新时间:2021-08-10 03:13:40
正如@Loathing评论的那样, BindingList 也为我工作。它将如何工作:
As @Loathing commented BindingList worked for me too. How it will work :
BindingList<ioChannel> myList = new BindingList<ioChannel>();
dgvChannels.DataSource = myList;
BindingList具有通知列表更改的事件。以便datagridview可以通知自己重绘,检查这个。有关更多信息,请访问 msdn 。
BindingList has event that notifies changes in list. So that datagridview can notified to redraw itself, check this. For more information visit msdn.