且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

单击列标题时的Datagridview列排序

更新时间:2023-12-03 18:42:46

如果可以使用javascrip/jQuery,建议您使用JQuery插件 Datatabe .

If you could use javascrip/jQuery I would suggest you to use the JQuery plugin Datatabe.

这样一来,您就可以对列进行排序,列重新排序,过滤和搜索.

With that you can get the colum sorting, colum reordering, filtering and search all together.

如果不是javascript,则可以使用以下指南: DataGrid排序

If not javascript, then you can use the following guide: DataGrid sort