Click here to Skip to main content
15,795,789 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello all,

I need some help from all of you helper of code project,

I need to apply concept of locking for my application, so guys tell me how to implement it.
my problem like that ...
I am apply locking on update/Edit so no other user update record until updation is not successfully done by user1 . so i can apply this concept.
i need to stop user to select value from gridview when already value is selected by another user for update ,so i want to prevent other user until value is updated by the user successfully.

Share this answer
King Fisher 6-May-14 7:52am    
Good link ;)
Insted of working on gridview you can use transaction in your back end sql . For more info on transaction in sql sevrer please refer
SQL Server Transactions and Error Handling[^]
Share this answer
dharmendra prajapati10may1990 6-May-14 7:18am    
its my application requrement so please give me another solution on selection of particular row in gridview ,until update not done successfully.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900