I'm able to get the count of the filtered rows of the dataview from within
the With view block, but when I try to bind the view to the listbox I don't
get any count within the With lb1 block and my listbox is empty. What's wrong?
Dim view As New DataView(tbl)
With view
.AllowDelete = True
.AllowEdit = True
.RowFilter = "name like '" & cb1.Text & "%'"
.RowStateFilter = DataViewRowState.ModifiedCurrent
End With
Try
With lb1
.DataSource = view
.DisplayMember = "name"
.ValueMember = "id"
End With