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 Quote 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 Quote 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' . Quote 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 Quote 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 } Quote 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 ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.