I have a GridView and a datasource. The only properties i set to datasource are the ConnectionStrings, ProviderName, runat and ID as shown below. And according to a criteria i set SelectCommand property of my datasource on my .cs file of .aspx on which exists my gidview. My problem is that; although i set AllowPaging and AllowSorting properties of my gridview to true, it nor sorts or pages the gridview but just disappears. I just wonder how i could get over this?
<asp:SqlDataSource ID="DSourceSirketSec" runat="server" ConnectionString="<%$ ConnectionStrings:Constring %>"
ProviderName="<%$ ConnectionStrings:Constring .ProviderName %>">
</asp:SqlDataSource>
Thanks...