我从总和中得到一个负值,我需要它的绝对值。仅供引用,值在标签中。
最佳答案
用于求和的标签有事件SummaryCalculated .
private void xrLabel1_SummaryCalculated(object sender, TextFormatEventArgs e) {
xrLabel1.Text = Math.Abs(Convert.ToInt32(e.Value)).ToString();
}
关于c# - DevExpress XtraReports绝对值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21553219/