bindingList对象的序列化/反序列化
问题描述:
如果用户通过saveButton选择此选项,我将尝试序列化由绑定到dataGridView的bindingList持有的对象.我还希望在我的应用程序在启动时加载时,将序列化的对象加载到我的dataGridView中.
有人可以向我指出如何实现这一目标的方向.
预先感谢,
-DA
I''m trying to Serialize the objects held by my bindingList that''s bound to a dataGridView if the user selects this option via a saveButton. I also want the serialized objects to load into my dataGridView when my application loads at startUp.
Can someone please point me in the direction on how to go about achieving this.
Thanks in advance,
-DA
答
可在CodeProject ^ ]
Useful article is available with the sample code at CodeProject Fixing BindingList<t> Deserialization[^]