SQL Server does that automatically. If a user is updating a row then that row is locked exclusive and cannot be read or changed by anyone else.
Have I misunderstood what you want?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability