Custom Paging in C#

  • Thread starter Thread starter Maziar Aflatoun
  • Start date Start date
M

Maziar Aflatoun

Hi,

I'm having problems with Custom Paging. Most of the articles out there show
that the custom paging is done as the following article.

http://authors.aspalliance.com/aspxtreme/sys/Web/UI/WebControls/DataGridClassAllowCustomPaging.aspx
(Check the example 'Custom Paging with AutoIncrement Data Model'). However,
the assumption here is that the rows are all there 1,2,3,4,5,6,7,8 but
that's not the case with many database tables. You can easily have deleted
rows and so get have rows such as 1,2,3,7,9 instead.

string query = "select top " + myGrid.PageSize +
" * from Plans where PlanNo > " + startIndex;
Any idea what a work around for this would be? or am I missing anything
here?

Thank you
Maziar A.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top