PGSQLDATASOURCE AUTOMATIC DATA PAGING PROBLEM
PGSQLDATASOURCE AUTOMATIC DATA PAGING PROBLEM
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
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
One last question.StanislavK wrote:We have fixed the problem. The fix will be available in the nearest build which we plan to release in about a week.
Does the DataPagingMode works only with controls that support page processing like gridviews or can it be used also with other controls like comboboxes and listboxes?
Regards,
Jorge Maldonado
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
The DataPagingMode property specifies the way PgSqlDataSource generates a data table. The way this data table is processed by a particular control depends on the control implementation. If some custom list box or combo box components support paginal data access, then it should be possible to use DataPagingMode for these components.
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
We have released the new 4.95.140 build of dotConnect for PostgreSQL. It can be downloaded from
http://www.devart.com/dotconnect/postgr ... nload.html
(the trial version) or from Registered Users' Area (for users with active subscription only):
http://secure.devart.com/
The new build contains the fix for problem with filling DevExpress ASPxGridView in Auto DataPagingMode of PgSqlDataSource. For more information on fixes and improvements available in version 4.95.140, please see
http://www.devart.com/forums/viewtopic.php?t=18032
http://www.devart.com/dotconnect/postgr ... nload.html
(the trial version) or from Registered Users' Area (for users with active subscription only):
http://secure.devart.com/
The new build contains the fix for problem with filling DevExpress ASPxGridView in Auto DataPagingMode of PgSqlDataSource. For more information on fixes and improvements available in version 4.95.140, please see
http://www.devart.com/forums/viewtopic.php?t=18032