two grids with validators

Discussion in 'ASP .Net Web Controls' started by latha, May 26, 2005.

  1. latha

    latha Guest

    Hi
    I have two datagrids (master - detail) in one page and I have required field
    validators for both the grids template columns.
    My problem is if click on the add buton in the footer of details grid, it is
    also firing required field validation in the master grid which is not valid.
    How can prevent the databind of parent grid on clicking the add button of
    detail grid so that master validators will not fire.

    Thanks
    --
    latha, May 26, 2005
    #1
    1. Advertising

  2. latha

    Brock Allen Guest

    This is a limitation in validation in 1.1. In ASP.NET 2.0 they've addressed
    this problem with ValidationGroups.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > Hi
    > I have two datagrids (master - detail) in one page and I have required
    > field
    > validators for both the grids template columns.
    > My problem is if click on the add buton in the footer of details grid,
    > it is
    > also firing required field validation in the master grid which is not
    > valid.
    > How can prevent the databind of parent grid on clicking the add button
    > of
    > detail grid so that master validators will not fire.
    > Thanks
    >
    Brock Allen, May 26, 2005
    #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. Barry

    Unbound tables or grids of data?

    Barry, Jul 23, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    331
    Barry
    Jul 23, 2003
  2. James G. Beldock

    Multiple grids - how to update layout position

    James G. Beldock, Jul 24, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    409
    Saravana
    Jul 24, 2003
  3. Replies:
    0
    Views:
    322
  4. Ratman
    Replies:
    0
    Views:
    653
    Ratman
    Sep 14, 2004
  5. aaa
    Replies:
    0
    Views:
    103
Loading...

Share This Page