Harry Rogers Posted November 9, 2018 Share Posted November 9, 2018 Hi CurrRow returns the integer row number for the current page of a UniDbGrid and weboptions.PageSize gives the number of rows per page. How do I read the current page ? - so I can construct a record counter display. Thanks Link to comment Share on other sites More sharing options...
Sherzod Posted November 9, 2018 Share Posted November 9, 2018 Hi, May help you: http://forums.unigui.com/index.php?/topic/7958-changing-dbgrid-paging-properties-at-runtime/&do=findComment&comment=56268 Link to comment Share on other sites More sharing options...
Harry Rogers Posted November 9, 2018 Author Share Posted November 9, 2018 Thanks for the reply CurrPage = UniDBGrid1.DataSource.DataSet.RecNo div UniDBGrid1.WebOptions.PageSize + 1 That was my initial thought However my database returns the fixed natural order position with dataSet.Recno - not much use with filters and or indexes. I need currpage to enable the calculation of the 'effective Recno' . Link to comment Share on other sites More sharing options...
Sherzod Posted November 9, 2018 Share Posted November 9, 2018 Also you can use "Client side" for this If I understand you correctly Link to comment Share on other sites More sharing options...
Sherzod Posted November 9, 2018 Share Posted November 9, 2018 function pagingBar.beforechange(sender, page, eOpts) { page //=currentPage } function pagingBar.change(sender, pageData, eOpts) { pageData.currentPage //=currentPage } Link to comment Share on other sites More sharing options...
Harry Rogers Posted November 12, 2018 Author Share Posted November 12, 2018 Thanks for that - Works perfectly. As always great support ! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now