if you're using Viz Studio, open up the property builder for the grid.

Go to Columns and then Button Columns and choose the "Edit, Update, Cancel" Button

Each guy will have his own event handler like:
dg_EditCommand, dg_CancelCommand...

Hope this helps get you started