Author: bachNet | Posted on: 7/7/2009 1:09:00 PM | Views : 309

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 ...