Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 15th, 2012  |  syntax: None  |  size: 0.44 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. XtraReports dual label binding
  2. Private void Detail_BeforePrint(object sender, PrintEventArgs e) {
  3.    if ([GoalNumber] != null) {
  4.        xrLabelGoal.Text = [GoalNumber].ToString()
  5.    }
  6.    else {
  7.       xrLabelGoal.Text = [GoalAmount].ToString()
  8.    }
  9.  
  10.    xrCWPerct.Text = Convert.ToString(Convert.ToInt32(xrLabelGoal.Text)/Convert.ToInt32(xrLabelCurrentValue.Text);
  11. }
  12.        
  13. xrLabelGoal.Text =  ((DataRowView)GetCurrentRow()).Row["goalnumber"].ToString();