Dev report 计算列
CalculatedField calcField = new CalculatedField(); this.CalculatedFields.Add(calcField); // Define its properties. calcField.DataSource = this.DataSource; calcField.DataMember = this.DataMember; calcField.FieldType = FieldType.Decimal; calcField.DisplayName = "A Calculated Field"; calcField.Name = "myField"; calcField.Expression = "[TotalShopCost] * 0.1"; // Bind a label's Text property to the calculated field. this.FindControl("txtSum", true).DataBindings.Add("Text", null, "myField");