title: Windows Forms - How to display Update/Cancel Button in DataGridViewButtonColumn?
body: <p>When I develop ASP .NET Web Applications, I use the following code to show <code>Update</code> and <code>Cancel</code> buttons when a user clicks on <code>Edit</code> button inside DataGridView Column.</p>
  
  <pre><code>&lt;asp:EditCommandColumn EditText="Edit" 
               ButtonType="LinkButton" 
               UpdateText="Update" 
               CancelText="Cancel" 
               HeaderText="Update"/&gt;
  </code></pre>
  
  <p>Is there any way to do it in Windows Forms? What I have planned to do now is I will add three <code>DataGridViewButtonColumn</code>s <code>Edit</code>, <code>Update</code> and <code>Cancel</code>. And on cell click event of DataGridView, <code>Edit</code> column will be hidden and <code>Update</code> and <code>Cancel</code> Column will be displayed.</p>
  
  <p>Another solution is to use <code>DataGridViewLinkCell</code>  and change the value of the column after clicking on the cell.
  Example: <a href="http://www.dreamincode.net/forums/topic/238727-insert-update-and-delete-records-in-table-with-datagridview-using-c#/" rel="nofollow">Insert, Update &amp; Delete Table from DataGridView in C#.Net</a></p>
  
  <p>There are a lot of questions on SO asking about DataGridView Select/Insert/Update/Delete Commands. But I'd like to know which will be the suitable method to use in this situation. Any help will be very much appreciated.</p>