borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (console.writeline error?)Next Topic (Javascript date validation ?) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : how trap on which Datagrid navigation user click ??
Poster Message
tri_inn
Level: Regular User
Registered: 26-08-2002
Posts: 395

icon how trap on which Datagrid navigation user click ??

when i am doing paging with datagrid then two next and previous button appear. i want to know how could i trap on which button user click mean user can click on prev or next button and i want to trap it. please help

15-10-2004 at 06:54 AM
View Profile Send Email to User Show All Posts | Quote Reply
MacD
Level: Big Cheese

Registered: 06-01-2004
Posts: 19
icon 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

02-12-2004 at 09:32 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ASP.Net : how trap on which Datagrid navigation user click ??
Previous Topic (console.writeline error?)Next Topic (Javascript date validation ?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder