Click here to Skip to main content
15,944,832 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friend,

I am Working in Windows Application which is for multi user. There is grid view in Form.
My problem is that If a User change value in the combobox-Cell of Grid View on that time Other user can not able to change value, Until the Grid View Update.
I used flag in database but its not working properly. Please suggest me what should I use?
I am using MYSQL as a database

Thanks in Advance
Neetesh Agarwal
Updated 6-Apr-13 0:11am
[no name] 6-Apr-13 4:43am    
Is Same form is opened at same time.
Neetesh Agarwal 6-Apr-13 4:49am    
Yes in Different System.

1 solution

Set a flag in database say Status column.If the column value is 1 then it is open some where.In this case restrict the user to access the database.

In the other case if 1st user is accessing the database means the status field will be 1.And once the user updates the database then only make the status column as 0.Then only other user can access the database.

I told the logic.Try it your own.If you will have any confusion then let me know.Ok
Share this answer

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