Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>there are a lot of events that could be used including</p> <p><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.leave.aspx" rel="nofollow noreferrer"><code>Leave</code></a> Event which Occurs when the input focus leaves the DataGridView</p> <p><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellleave.aspx" rel="nofollow noreferrer"><code>CellLeave</code></a> Event which Occurs when a cell loses input focus and is no longer the current cell</p> <p><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.rowleave.aspx" rel="nofollow noreferrer"><code>RowLeave</code></a> Event which Occurs when a row loses input focus and is no longer the current row</p> <p>MSDN has info on each of the <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview_events.aspx" rel="nofollow noreferrer"><code>DataGridView Events</code></a></p> <p>In the <code>Event</code> you use, you would place your code to perform the <code>UPDATE</code>. There are lots of answers on SO about updating the database:</p> <p><a href="https://stackoverflow.com/questions/2623548/winforms-datagridview-update-database">WinForms DataGridView - update database</a></p> <p><a href="https://stackoverflow.com/questions/4051390/c-sharp-winforms-how-to-send-updates-from-datagridview-to-database">C# WinForms - how to send updates from DataGridView to DataBase</a></p> <p>My suggestion would be try try some of this code and then if you have problems, post another question with your code. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload