Row Changing Event

Discussion in 'ASP .Net Datagrid Control' started by Greg, Jun 28, 2004.

  1. Greg

    Greg Guest

    I am validating data in the datasets row_changing event. If there are errors
    I throw an exception which will cause the system to prompt the user with the
    "do yo want to correct this value" error message.

    If the user is working on a deached row and then closes the form the form
    seems to close first before the row_change event occurs. So if the user then
    answeres yes they want to correct they get an object reference error.

    What is the best way to get around this issue?
     
    Greg, Jun 28, 2004
    #1
    1. Advertising

  2. Do you re-generate the dataset on the postback?

    Eliyahu

    "Greg" <> wrote in message
    news:...
    > I am validating data in the datasets row_changing event. If there are

    errors
    > I throw an exception which will cause the system to prompt the user with

    the
    > "do yo want to correct this value" error message.
    >
    > If the user is working on a deached row and then closes the form the form
    > seems to close first before the row_change event occurs. So if the user

    then
    > answeres yes they want to correct they get an object reference error.
    >
    > What is the best way to get around this issue?
    >
    >
     
    Eliyahu Goldin, Jun 28, 2004
    #2
    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. Replies:
    5
    Views:
    696
  2. dave

    stumped...table - row - click event, cancel checkbox event

    dave, Sep 2, 2006, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    235
  3. Martin Thole

    Event on changing cell in the edit row ?

    Martin Thole, Feb 24, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    142
    Scott Mitchell [MVP]
    Feb 25, 2004
  4. D
    Replies:
    0
    Views:
    257
  5. Replies:
    0
    Views:
    164
Loading...

Share This Page