DataGrid & Form on Same Page Post Issue

Discussion in 'ASP .Net Datagrid Control' started by Paul D. Fox, Mar 4, 2005.

  1. Paul D. Fox

    Paul D. Fox Guest

    I have a datagrid that does and edit/update/delete/cancel routine and then I
    have a form at the bottom of the page with an "Add" button to add a another
    record. This form as validation (e.g. required fields), so when I click on
    "Edit" in the datagrid and then "update" it, the form's validation summary
    gets executed. How can I update the datagrid without getting the form
    "posted", or at least not run the validation ?

    Paul
     
    Paul D. Fox, Mar 4, 2005
    #1
    1. Advertising

  2. Paul D. Fox

    Elton Wang Guest

    Hi Paul,

    You might use following logic:

    In EditCommand (Go to Update state)
    disable validation
    (may also disable Add button)
    In UpdateCommand & CancellCommand (Return to normal state)
    enable validation
    (enable Add button)

    HTH

    Elton Wang



    >-----Original Message-----
    >I have a datagrid that does and edit/update/delete/cancel

    routine and then I
    >have a form at the bottom of the page with an "Add"

    button to add a another
    >record. This form as validation (e.g. required fields),

    so when I click on
    >"Edit" in the datagrid and then "update" it, the form's

    validation summary
    >gets executed. How can I update the datagrid without

    getting the form
    >"posted", or at least not run the validation ?
    >
    >Paul
    >
    >
    >.
    >
     
    Elton Wang, Mar 5, 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. =?Utf-8?B?RGF2ZSBCcm93bg==?=

    HttpWebRequest POST result is not the same as POST via ServerXMLHT

    =?Utf-8?B?RGF2ZSBCcm93bg==?=, Nov 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,159
    Joerg Jooss
    Nov 10, 2005
  2. Matt MC
    Replies:
    2
    Views:
    532
    Thomas 'PointedEars' Lahn
    May 25, 2005
  3. arnuld
    Replies:
    6
    Views:
    642
    arnuld
    Sep 5, 2007
  4. rodchar

    mvc same name same post

    rodchar, Oct 8, 2009, in forum: ASP .Net
    Replies:
    0
    Views:
    300
    rodchar
    Oct 8, 2009
  5. bluebaron
    Replies:
    3
    Views:
    777
    Jonathan N. Little
    Nov 4, 2009
Loading...

Share This Page