Validate Datagrid in edit or add (in footer)

Discussion in 'ASP .Net Web Controls' started by Tamir Kamara, Jan 22, 2004.

  1. Tamir Kamara

    Tamir Kamara Guest

    Hi,

    I have a datagrid that I can edit and insert new rows (with the footer). I
    have only one textbox in the edit template and in the footer template. I
    also have a required field validator and a custom validator to prevent
    duplicate values.
    The problem is that when I call the page.validate after editing a row, the
    requiredfield in the footer also fires and comes back with an error.
    how can I separate it so only the edit / insert controls fires at a given
    time?
     
    Tamir Kamara, Jan 22, 2004
    #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. Ante Perkovic

    How to validate a datagrid (in edit mode)?

    Ante Perkovic, Jun 24, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,902
    Ante Perkovic
    Jun 24, 2003
  2. Schultz
    Replies:
    3
    Views:
    567
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Feb 14, 2005
  3. Henrik
    Replies:
    1
    Views:
    428
    Ken Cox [Microsoft MVP]
    Jul 6, 2006
  4. Don Hans

    Use Validation control to validate datagrid edit?

    Don Hans, Dec 25, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    146
    Don Hans
    Dec 25, 2003
  5. Don Hans

    Validate a Datagrid Edit?

    Don Hans, Dec 25, 2003, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    158
    Don Hans
    Dec 25, 2003
Loading...

Share This Page