Out of the box, you can do a lot with the DataView.RowFilter property, but you can’t make use of the top clause. However, if the view contains a column with unique values, you can obtain the same results by setting the Sort property and then generating a RowFilter which uses the in condition.
Here’s a sample:
Note how the delimited string is built. Phil Haack provided an interesting tip on concatenating a delimited string last year. Undoubtedly, we’ve all built delimited strings using our preferred method. If you sift through the post comments, you will see what I mean. Anyhow, I took a liking to the method Joe Cheng uses when he says he’s “feeling lazy and performance is not critical (which is the vast majority of the time).”