How do I implement automatic sorting of DataGridView?

前端 未结 3 2271
一个人的身影
一个人的身影 2020-11-27 19:53

I am programmatically adding columns to a DataGridView and then binding to a list. By default, the SortMode of the columns are Automatic. But when I run my app, clicking o

3条回答
  •  旧巷少年郎
    2020-11-27 20:11

    I think I found the answer. My datasource implements IList. Apparently it need to implement IBindingList. Unfortunately, I'm not able to test this.

提交回复
热议问题