MacD Level: Big Cheese
 Registered: 06-01-2004 Posts: 19
|
Re: how trap on which Datagrid navigation user click ??
Hi,
I think you should devise an algorithm that uses the currentpageindex property of a datagrid.
Algorithm:
1. create a variable that keeps the previous currentpage
index of a datagrid.
2. when a user clicks the next or previous button capture the
current page index.
3. compare values in 1 and 2 above
- if (value in 1 < value in 2) then
user has clicked the next button
else
user has clicked the previous button
end if
then assign value in 1 to the currentpageindex
I hope this will assist you.
Regards,
____________________________
MacD
|