Dategrid PushButton Validation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a ASP.Net page that has a few fields to submit to a database and a
datagrid to edit the entries. I have validation controls to make sure the
user enters the right info on the first few fields.

In the datagrid, I have it set up dynamic so they can edit the dtabase
records from the database. They click edit and they can edit a few fields and
then press either update or cancel.

The problem I have now is that when the user presses the update button, it
fires the validation controls. How can I turn off the validation for only the
update button in the datagrid?

Thanks,

Jerel
 
Hi Jerel,

Page and Control validation cannot be controlif it's set to object level.
You need to write a Custom Validation control which fires other then onclick
event
of Update Button.

Second Option is to set the DataRow of the Datgrid to NonError. This does
not validate the data and updates.

Thanks,
Ashish
 
Back
Top