Jump to content

Recommended Posts

Posted

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

Posted

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

 

Posted
function pagingBar.beforechange(sender, page, eOpts)
{
    page //=currentPage
}
function pagingBar.change(sender, pageData, eOpts)
{
    pageData.currentPage //=currentPage
}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...