Hi,
You are observing this behavior, because most probably you have forgotten to limit the updated rows with the "WHERE" clause. If you omit the "WHERE" clause this will initiate update to all records in the database.
In the demo I have sent you in my last reply, the UpdateCommand looks like this:
You could see that we are using WHERE statement to limit the affected records. The @"FieldName" statement are UpdateParameters that are listed in the UpdateParameters collection in the DataSource declaration:
You could check
this MSDN thread for more information about the Update operation with SqlDataSource. More information about the Update statement that is used could be found in
this MSDN thread.
Regards,
Andrey
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license!
Book your seat now >>