Hello everybody,
I'm trying to use data paging inside my gridview.
<asp:GridView ID="gvHistory" runat="server" AllowPaging="True"
AllowSorting="True" DataSourceID="dsLogs">
</asp:GridView>
i'm generating my SQL select query dynamicaly so i'm declaring the sqldatasource programatically inside a function which look like the following :
SqlDataSource dSrc = new SqlDataSource();
dSrc.dat = "dsLogs";
Page.Controls.Add(dSrc);
dSrc.ConnectionString = ConfigurationManager.ConnectionStrings["ConnName"].ConnectionString;
dSrc.SelectCommand = strQry; dSrc.DataBind();&nb ...
Go to the complete details ...