PGSQLDATASOURCE AUTOMATIC DATA PAGING PROBLEM
Posted: Sun 14 Mar 2010 18:48
I have a web form with a grid to show information from a DB. I set a datasource in such a web form without a select statement because it is set at run time depending on several choices I made in my web form.
The select statement is built as follows:
String strQuery = "";
strQuery += "SELECT fld1, fld2, fld3,....,fldn "
strQuery += "FROM tbl1 "
strQuery += "INNER JOIN ........."
strQuery += "INNER JOIN ........."
strQuery += "WHERE conditions "
strQuery += "ORDER BY order criteria"
dsCatAlbumes.SelectCommandType = SqlDataSourceCommandType.Text;
dsCatAlbumes.DataPagingMode = Devart.Common.Web.DataPagingMode.Auto;
dsCatArtistas.SelectCommand = strQuery;
grdCatArtistas.DataSource = Session["dsCatArtistas"];
grdCatArtistas.DataBind();
The pgSqlDataSource is defined in my aspx form as follows:
"
OldValuesParameterFormatString="Original_{0}"
ProviderName="" >
Nothing is shown in the grid; nevertheless, if I remove the DataPaginMode line then it works.
What am I doing wrong?
I am using the following versions:
PostgreSQL - V8.3.1
dotConnect for PostgreSQL - V4.0.12.0
I work with Devexpress - V9.3.3.0 controls, I wonder if this could be a problem.
Respectfully,
Jorge Maldonado
The select statement is built as follows:
String strQuery = "";
strQuery += "SELECT fld1, fld2, fld3,....,fldn "
strQuery += "FROM tbl1 "
strQuery += "INNER JOIN ........."
strQuery += "INNER JOIN ........."
strQuery += "WHERE conditions "
strQuery += "ORDER BY order criteria"
dsCatAlbumes.SelectCommandType = SqlDataSourceCommandType.Text;
dsCatAlbumes.DataPagingMode = Devart.Common.Web.DataPagingMode.Auto;
dsCatArtistas.SelectCommand = strQuery;
grdCatArtistas.DataSource = Session["dsCatArtistas"];
grdCatArtistas.DataBind();
The pgSqlDataSource is defined in my aspx form as follows:
"
OldValuesParameterFormatString="Original_{0}"
ProviderName="" >
Nothing is shown in the grid; nevertheless, if I remove the DataPaginMode line then it works.
What am I doing wrong?
I am using the following versions:
PostgreSQL - V8.3.1
dotConnect for PostgreSQL - V4.0.12.0
I work with Devexpress - V9.3.3.0 controls, I wonder if this could be a problem.
Respectfully,
Jorge Maldonado