private void BtnUpdateComplete_Click(object sender, RoutedEventArgs e) { if (tb_CashBenefits.IsSelected) { hrCashBeenfit.CompleteUpdate(); } else if (tb_NonCashBenefits.IsSelected) { hrNonCashBeenfit.CompleteUpdate(); } else if (tb_EmpCashBenefits.IsSelected) { hrEmpCashBeenfit.CompleteUpdate(); } else if (Tb_EmpNonCashBenefits.IsSelected) { hrEmpNonCashBeenfit.CompleteUpdate(); } }