Hi, Rex...
The GridView contains a design-time property called SelectedDataKey – you can set it to a unique identifier based on the PK of the data being edited. So if it's orderID, you'd set the value of SelectedDataKey to "orderID". And then at runtime...
int nOrderID = (int)this.MyGrid.SelectedDataKey.Values["OrderID"];
let me know if that helps...
Kevin