Re: index number of a datarow in a data table

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks for replying so fast.

You see, my requirements are the following:

I need to create a page which has two functions: 1) display the content
a specific record in a database table and 2) page forward and backward
from the initial specific record mentioned before.

When the page loads, a datatable ("mydatatable") is created, and a
specific record is selected according certain criteria. Furthermore,
the page contains "Next" and "Previous" buttons, which allows for the
user to move forward and backwards in the datatable, but always using
the initially selected record as a starting point.

My idea is therefore to identify the initially selected record by its
index number, from which one can more up and down by adding to or
subtracting from that initial value (the minimum value being 0 and the
maximum value being mydatatable.rows.count - 1)

Let me know what you think.

Thanks

TB

.


Quantcast