How to trigger the validation action before data row is updated

  • Thread starter Thread starter Rabbit
  • Start date Start date
R

Rabbit

Before updating a datarow, its quite oftern for a data-bind form to check
each control's data is valid first, before commit the changes on the
datatable.

I want to validate the current data row before it is updated to the
datatable on a data-bind form. Is there any event for triggering such update
action or whats the usual practice for implementing such checking? So that I
can ensure each control user input is valid and instruct user to correct any
error beforehand.

Thanks in advance!
 
look for datatable's columnchanging and rowchnaging events.

Rajesh Patel
 
thanks again! this is the event I'm looking for, I will implement the logic
on Rowchanging event then!
 
Once you call BeginEdit on DataRow, these events will not fire though...so
be careful.
 

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

Back
Top