|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGrid & Form on Same Page Post IssueI 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 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 elton_w***@hotmail.com >-----Original Message----- routine and then I >I have a datagrid that does and edit/update/delete/cancel >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 getting the form validation summary >gets executed. How can I update the datagrid without Show quoteHide quote >"posted", or at least not run the validation ? > >Paul > > >. >
e.Item.DataItem
Avoid adding a new record on refreshing the browser 2 Performance Questions Underline a whole row for a particular row CancelCommand Event Handler Not Firing dataView Need some hints before starting to change a page Embedded DropDownList in column. Viewstate question populating a datagrid from an array |
|||||||||||||||||||||||