The traditional way is by calling setDefinitionExpression()
on the FeatureLayer, assuming there is a distinct property of the features you want to display. If you already have the OIDs, and there's no distinct property, you could set the expression to OID = 1 OR OID = 2 OR OID = 3...
, but that might get messy in a hurry.
I think you might also be able to do it using the ClassBreaksRenderer and setting the other symbols to null
...?