Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is base class of .net?

974


What is datagrid asp.net?

1051


What is difference between asp.net and asp.net mvc? : Asp.Net MVC

1058


How to create discussion forum in asp.net mvc? : Asp.Net MVC

1045


Is asp.net still used?

1027


How will you do Redo and Undo in a TextControl?

1185


What is difference between rest and soap?

1113


What is server infrastructure?

1121


What is in a session cookie?

972


What are the Types of session management in ASP.NET

1041


What is owin authentication?

970


Can I have a unique key as foreign key?

963


What is the maximum amount of memory any single process on windows can address?

1034


What are the merits and demerits of viewstate?

1042


Explain difference betn dataset and recordset?

937