int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex]; string deleteCmd = "Delete from Employee where emp_id = " + intEmpID.ToString();