下面为了排序加了个@,但到时候又要去掉@及前面字符,很麻烦,有没有更好的办法?
Dim ls As New List(of String)
For Each nm As String In DataTables("表A").GetValues("投标单位","报价 > 0")
Dim lst As List(Of DataRow) = DataTables("表A").Select("投标单位 = '" & nm & "'")
If ls.Contains(lst.Count & "@" & nm) = False Then
ls.Add(lst.Count & "@" & nm)
End If
Next
ls.Sort()
ls.Reverse()
Dim st As String = String.Join("|",ls.ToArray)
e.Sender.ComboList = st
此主题相关图片如下:dddd.png