方法一:

GridView.Sort(_view.Grid.Columns[2], ListSortDirection.Ascending); //

 

方法二:

BindingSource.Sort = "Id ASC";//这种方法显示不出小三角形来.

WinForms中,使用BindingSource控件时,用代码对DataGridView排序的方法

相关文章:

  • 2022-02-02
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2021-07-04
  • 2021-05-19
  • 2021-06-20
猜你喜欢
  • 2021-07-27
  • 2021-10-28
  • 2021-08-14
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案