G
Guest
Below is the code. This code should sort Subjects by SeqNo or LastName. But
it has no affect on the order. The order remains the same as original
dataset (ds). What I am doing wrong?
WR
Dim dvS As New DataView
Dim iPerson_ID As Int32
Try
dvS = ds.tblSubject.DefaultView
Select Case optOrderBy.Value
Case "SeqNo"
dvS.Sort = "SeqNo"
Case "LastName"
dvS.Sort = "LastName"
Case "Entered"
End Select
it has no affect on the order. The order remains the same as original
dataset (ds). What I am doing wrong?
WR
Dim dvS As New DataView
Dim iPerson_ID As Int32
Try
dvS = ds.tblSubject.DefaultView
Select Case optOrderBy.Value
Case "SeqNo"
dvS.Sort = "SeqNo"
Case "LastName"
dvS.Sort = "LastName"
Case "Entered"
End Select