DataGrid & Form on Same Page Post Issue

P

Paul D. Fox

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
 
E

Elton Wang

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
(e-mail address removed)
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top