16,550
社区成员
发帖
与我相关
我的任务
分享
Private Sub SortByTwoColumns()
' Get the DefaultViewManager of a DataTable.
Dim view As DataView = DataTable1.DefaultView
' By default, the first column sorted ascending.
view.Sort = "State, ZipCode DESC"
End Sub
'貌似不能同时按照两列来排序
Me.DataGridView1.Sort(Me.Column1)
Me.DataGridView1.Sort(Me.Column2)
'这样不知道行不行