We are sorry for delay,
We have analyzed your query. When you want to get current record from the button click event you have to convert DataContext as GridDataCellBoundWrapper Class, from that you can get the Record and you have to typecast with RecodEntry. Now you can able to get the current record. You can also refer the below codesnippet.
private void cmdOpenUnit_Click(object sender, RoutedEventArgs e)
var data = ((Button)sender).DataContext as GridDataCellBoundWrapper;
var style = data.Record as RecordEntry;
var record = style.Data as Data;
We have prepared a sample based on your requirement, please find the attached sample below,
Please let us know if this helps you,
Thanks for your update.