This gives the pivot grid row value for the selected field in the code behind
//first field in the row area
PivotGridField pgCustNameField = pvGrid.GetFieldByArea(DevExpress.XtraPivotGrid.PivotArea.RowArea, 0);
//uses the field above and gets the indicated row
strDetailCustomerName = pvGrid.GetFieldValue(pgCustNameField, int.Parse(strIndexRow)).ToString();