PagedDataSource Count
<p>i am using <code>pageddatasource</code> to make paging for <code>datalist</code> control, but when binding <code>pageddatasource</code> to linq query, the count doesn't change although the result of query is different (<code>ResultQuery_Count = 13</code> AND <code>PagedDataSource</code> count always 10). and <code>IsFirstPage</code> and <code>IsLastPage</code> always true as well</p>

<p>here's the Code :</p>

<pre><code>PagedDataSource objPage = new PagedDataSource();
try
{
    objPage.AllowCustomPaging = true;
    objPage.AllowPaging = true;
    objPage.DataSource = Getter.GET_GeneralResult();
    objPage.PageSize = 8;
    objPage.CurrentPageIndex = CurrentPage;
    lbtnNext.Enabled = !objPage.IsLastPage;
    lbtnPrev.Enabled = !objPage.IsFirstPage;   
    DataList1.DataSource = objPage;
    DataList1.DataBind();
}
catch (Exception ex)
{
    throw ex;
}
</code></pre>
