DataView filter and returning a string array
<p>I have a DataTable and I applied a filter on the DataTable</p>

<p>I have two questions:</p>

<p>1) I want to apply additional filter so that it return only top 10 rows after the filter is applied.</p>

<p>2)  I want to convert a DataView to string Array after the filter is applied</p>

<p>Here is what I did so far:</p>

<p>I am passing a prefix variable as a parameter to the below function:</p>

<pre><code>dt = GetNumbers()
    ' filtering in datatabase



    Dim dv As DataView = New DataView(dt)
    dv.RowFilter = "number like '" + prefix + "%'"

     ' I want to return only top 10 rows after the above filter is applied
     ' after this I want to convert the dataview to string array and return that.

    Return strArray
</code></pre>

<p>any help will be appreciated.</p>