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
How does session authentication work?
What is owin authentication?
How can you pass multiple complex types in Web API?
How to make paging concepts in datagrid in ASP.NET?
Why mvc is better than asp.net? : Asp.Net MVC
Who can consume WebAPI?
What is cookies cache and session?
What is page fragment caching?
What parameters can you pass in the url of the api?
What is the difference between session.abandon() vs clear()?
Is redux flux?
What are server-side comments in ASP.NET?
How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?
Is data edited in the Repeater control?
How about the security in Activex DLL and Activex EXE ?