This example demonstrates how to conditionally enable or disable the editing on the client side. You can find detailed steps by clicking below the "Show Implementation Details" link .
See also:
GridView - Batch Editing - How to conditionally enable and disable the editing on the client side