Suppose you display a data having 200 records in a
datagrid. Then you edit 100 records of them. Now when you
will press update button,all 100 records should be updated
in single shot rather than reading every record and
updating. How to do it?
Answer Posted / pradeep
Each row is having Edit/Update/Cancel button.
In "_UpdateCommand" event, we can write a code to update
directly into the database. But it is not good practice.
For updating whole records in a single event, we need to
have hidden column for updateflag and while updating we can
store the updated data into session. By using BUTTON
control out side of datagrid, we can find only 100 records
(updated records) based on updateflag and we can update
only those records into DB.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the differences between clr & cts?
What is the displayafter property in updateprogress control?
Explain what does mvc represent in asp.net? : asp.net mvc
What is the difference between client-side and server-side validations in ASP.NET?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.
Explain one critical mapping?
What are the parts of an http response?
What do you mean by authentication?
What is the appSettings Section in the web.config file?
How do you declare static variable? What is its lifetime?
witch is the best insistute in sharpoint course.what abt future of share point course.
What is the difference between union and join?
Are cookies client side or server side?
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?
What is asynchronous call?