You say 'select record by mouse click to update it ,not working', but, I don't see anywhere that you have written code to make that happen. None of the code you've posted has anything to do with that. You need to handle a click in your HTML, in order to trigger all the code you've posted. Where are you doing that ?
Here[
^] is an article on what you're trying to do. Please explain, with code, why you think that clicking on a row should allow editing in your case, if you're still stuck.
I just realised this article is WPF, THEN realised you don't actually tell us what you're using. You are not using C# 3.0 AND C# 4.0, but either way, it's not clear if you're using ASP.NET, MVC, winforms, WPF, or what ?