简体   繁体   中英

DataGrid sorting with column text change C#

当我们向列标题输入数据时,如何在Windows窗体的DataGridView中动态排序数据?

最简单的方法是将DataGrid绑定到DataView,并在使用其RowFilter属性查询数据之后 ,由于DataGrid绑定到该数据,因此其内容将自动更新。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM