Datagrid Event Handlers

Discussion in 'ASP .Net Web Controls' started by Michael Albanese, Jun 30, 2003.

  1. I am building an event calendar in ASP.Net (VB) which
    binds a datagrid to data in an SQL database.

    For each event i display summary data with a "Details"
    button for more information on that event. The event
    handler for the "OnItemCommand" event is set to a sub
    called detailsClicked and it works fine.

    I also have Paging enabled, with the "OnPageIndexChanged"
    event handler set to a sub called pageGrid, but when i try
    to page it throws an "argumentout of range" exception and
    identifies code in my detailsClicked sub as the culprit.

    I have NO CLUE as to why this is happening. The stack
    trace information shows that when i attempt to page
    the "onItemCommand" is being fired. Short of excorcism, I
    am stumped! Does anyone have a guess as to what is going
    on here?

    Michael
    Michael Albanese, Jun 30, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Boban Dragojlovic

    Dynamic Buttons and Event Handlers, revisited

    Boban Dragojlovic, Jun 24, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,871
    Boban Dragojlovic
    Jun 24, 2003
  2. Trevor Hartman

    Re: crazy event handlers!

    Trevor Hartman, Jun 25, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    967
  3. Oisin Grehan
    Replies:
    3
    Views:
    486
    Natty Gur
    Jul 15, 2003
  4. Edward Bills
    Replies:
    0
    Views:
    452
    Edward Bills
    Aug 25, 2004
  5. Frank Walsh

    DATAGRID EVENT HANDLERS - NOT FIRING?

    Frank Walsh, May 6, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    117
    Scott M.
    May 7, 2005
Loading...

Share This Page