title: Using gridview's DataKeyName in Sql Update Query
body: <p>can someone give me a code example of how to use the selected data key from a gridview as a parameter on a SQL Update query in C#.net</p>
  
  <p>for instance . I am having a gridview bouded with template fields. When i click the select button in the gridview , the selected row information is displayed in textboxes outside the gridview. Now, User can edit that information and click on update button and update the records. To perform this update operation i want DataKeyNames property of the selected row' data to be used. 
  Like in Gridview... DataKeyNames="EntryID". So i need this Id again to update the records in the table.</p>