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 is base class of .net?
What is datagrid asp.net?
What is difference between asp.net and asp.net mvc? : Asp.Net MVC
How to create discussion forum in asp.net mvc? : Asp.Net MVC
Is asp.net still used?
How will you do Redo and Undo in a TextControl?
What is difference between rest and soap?
What is server infrastructure?
What is in a session cookie?
What are the Types of session management in ASP.NET
What is owin authentication?
Can I have a unique key as foreign key?
What is the maximum amount of memory any single process on windows can address?
What are the merits and demerits of viewstate?
Explain difference betn dataset and recordset?