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


    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
    Tamir Kamara, Jan 22, 2004
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.