I have one Grid, i am binding students records to that Grid.
Ex: If one user is Login say user name is: santosh.
When the user login , he will see the Students Record in his page.
In GridView when we click on the Student name it will open another pop up window with that student record( ex: it will open studentedit.aspx page)
in studentedit.aspx page all the information about that student will be shown.
So another user also login (ex: Prasad) into that site, he will also see the same GridView as Santosh.
Prasad also Clicked the same student record , so this student is already opened by santosh.
When santosh opened that student record. No other user has to open the record untill the santosh closed that student record.
Please give me reply.
Thanks,
Suresh
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shivanand ArurPosted Oct 9, 2012, 8:59 AM
By default you should keep it as 0.
So whenever the User Clicks on the Grid row, just check what value does the UserLock Column holds for that particular record.
1. If the value returned is 0, then first fire a Trigger which will update the UserLock value to "1" for that row and then open a Popup Panel and display the information that you wanna do.
2. And If the Value is returned as 1 then show a message something like... "User's information is viewed by someone else. Please select some other Row".
Hope this idea will help you out in your problem!!!
PLEASE MARK THE ANSWER AS ACCEPTED IF IT HELPED!!!
THANKS!!!