I have a listbox that is bound to a datasource and is filtered as below. The odd behavior is that it doesn't sort correctly as in 1,2,6,7,3,4,5. Any idea why this could be happening?
How the table is filled:
My filter code.
How the table is filled:
Code:
Me.ERV_ExhibitsTableAdapter.Fill(Me.ERVDataSet.ERV_Exhibits)Code:
Private Sub cmbLocation_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles cmbLocation.SelectedIndexChanged
ERV_ExhibitsBindingSource.Filter = String.Format("Location = '{0}' AND Exhibit = '{1}'", cmbLocation.Text, cmbQualifyingCritera.Text)
End Sub