Gridview always return a single row
<p>I am using the below code to display some records in gridview with specific filter. If the parent less than 2 means records display in a grid. But it always return a single row but my last datatable dt having more than five rows.How can i solve this error</p>

<pre><code>try
{
    DataView dv = new DataView();
    dv = dt.DefaultView;
    dv.RowFilter = "FLD_PARENT=0";
    if (dv.Count &lt; 2)
    {
        dv_pack.Visible = true;
        dt.DefaultView.Sort = "FLD_TYPE";
        grd_pack.DataSource = dt;
        grd_pack.DataBind();
     }
 }
 catch (Exception ex)
 {
     throw;
 }
</code></pre>
