Hi,
I have an application in which I will need to scan a barcode and then the matching record is displayed in a gridview. Then the next bacode will be scanned and added etc.
To that end I have got the scanning bit working and as each new barcode is scanned it gets added to an array. I need to be able to get those array entries setup as the filter of the gridview.
I would like to do this by setting up an initial filter that will search for record -1 which doesn't exist and as such the grid will be empty. Then I can add the items in one at a time. It would be nice and easy if I could do some form of an COLUMNNAME IN (1,2,3) operation on the grid like in SQL.
I have the following code present to add the column IDs to the filter. It doesn't work. I've tried a gridview refresh afterwards and no luck.
Any ideas?
best Regards,
Jon
I have an application in which I will need to scan a barcode and then the matching record is displayed in a gridview. Then the next bacode will be scanned and added etc.
To that end I have got the scanning bit working and as each new barcode is scanned it gets added to an array. I need to be able to get those array entries setup as the filter of the gridview.
I would like to do this by setting up an initial filter that will search for record -1 which doesn't exist and as such the grid will be empty. Then I can add the items in one at a time. It would be nice and easy if I could do some form of an COLUMNNAME IN (1,2,3) operation on the grid like in SQL.
I have the following code present to add the column IDs to the filter. It doesn't work. I've tried a gridview refresh afterwards and no luck.
Dim filter As Telerik.WinControls.Data.FilterExpression = New Telerik.WinControls.Data.FilterExpression() |
For Each columnID As String In columnIDs |
filter.Predicates.Add(Telerik.WinControls.Data.FilterExpression.BinaryOperation.OR, Telerik.WinControls.UI.GridKnownFunction.EqualTo, columnID) |
Next |
uxRadGridView.Columns("ColumnID").Filter = filter |
Any ideas?
best Regards,
Jon