'获得排序的字段,并显示排序标记 Private Sub lstvwJobNo_ColumnClick(ByVal sender As Object, ByVal e As System.Windows.Forms.ColumnClickEventArgs) Handles lstvwJobNo.ColumnClick Select Case e.Column.ToString Case 0 myField = "JOB.JOBNO" Case 1 myField = "CONTAINERNO" Case 2 myField = "CARTONFROM" Case 3 myField = "PO" Case 4 myField = "STYLE" Case 5 myField = "COLOR" Case 6 myField = "CARTONSIZE" Case 7 myField = "SHIPMENT" Case 8 myField = "FACTORY" End Select Dim i As Integer For i = 0 To 8 lstvwJobNo.Columns(i).Text = lstvwJobNo.Columns(i).Text.Replace(" ▼", "").Replace(" ▲", "") Next |