Wrong event fires in my asp.net datagrid

Discussion in 'ASP .Net' started by Hannes, Aug 19, 2004.

  1. Hannes

    Hannes Guest

    HI

    I have a datagrid where I have a edit, update, cancel column. If I
    klick at edit, the edit event fires. But if i click att update, the
    same event fires (edit-event).

    What am I doing wrong? any ideas? anybody?

    /hannes
     
    Hannes, Aug 19, 2004
    #1
    1. Advertisements

  2. It sounds like you just have your events wired up incorrectly. Which
    language are you using? If VB, check your "Handles" keyword. If C#, look
    in InitializeComponent. Post some code and I'll be happy to look at it.

    Travis Murray
    MCSD, MCT
    Artiem Consulting, Inc
    http://www.artiem.com


    "Hannes" <> wrote in message
    news:...
    > HI
    >
    > I have a datagrid where I have a edit, update, cancel column. If I
    > klick at edit, the edit event fires. But if i click att update, the
    > same event fires (edit-event).
    >
    > What am I doing wrong? any ideas? anybody?
    >
    > /hannes
     
    Travis Murray, Aug 19, 2004
    #2
    1. Advertisements

  3. I'm using VB.
    It seems like when I klick the update link-label, the selectedindex and
    edititemindex is set to nothing. Can this effect the update event
    handler? is that why the edit command is fired?

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Hannes Larsson, Aug 19, 2004
    #3
  4. Not likely. Send some code so we can troubleshoot it.

    Travis Murray
    MCSD, MCT
    Artiem Consulting, Inc.
    http://www.artiem.com

    "Hannes Larsson" <> wrote in message
    news:...
    >
    >
    > I'm using VB.
    > It seems like when I klick the update link-label, the selectedindex and
    > edititemindex is set to nothing. Can this effect the update event
    > handler? is that why the edit command is fired?
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
     
    Travis Murray, Aug 19, 2004
    #4
    1. Advertisements

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. Purvi T
    Replies:
    0
    Views:
    1,136
    Purvi T
    Oct 19, 2004
  2. George K
    Replies:
    3
    Views:
    1,930
    John Saunders
    Nov 25, 2003
  3. Jon
    Replies:
    1
    Views:
    12,036
    George Ter-Saakov
    Jan 13, 2004
  4. =?Utf-8?B?Um9iIFBlbm5lcg==?=

    Asp.Net click event fires on 2000 but not 2003

    =?Utf-8?B?Um9iIFBlbm5lcg==?=, Oct 13, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    452
    =?Utf-8?B?SGFyaSBOYWly?=
    Oct 18, 2004
  5. PugOne
    Replies:
    2
    Views:
    340
    PugOne
    Aug 8, 2005
  6. biker
    Replies:
    11
    Views:
    902
  7. Replies:
    3
    Views:
    1,203
  8. George K
    Replies:
    2
    Views:
    261
    Ray at
    Nov 24, 2003
Loading...