1
我有一个列表视图绑定到数据表(不使用任何自定义对象来表示提取的数据)。我如何创建一个视图,以便我可以过滤,排序集合。 (我试图谷歌,我发现,使用对象(例如,样品:产物)来创建视图)筛选数据表
示例代码:
Private Sub ShowOnlyBargainsFilter(ByVal sender As Object, ByVal e As FilterEventArgs)
Dim **product** As AuctionItem = TryCast(e.Item, AuctionItem)
If product IsNot Nothing Then
' Filter out products with price 25 or above
If product.CurrentPrice < 25 Then
e.Accepted = True
Else
e.Accepted = False
End If
End If
End Sub
我没有像产品的任何对象作为上述样品英寸我该怎么办?