private void Report_RenderingRow(object sender, ReportRowEventArgs e) { if (e.Row.RowType == ReportRowType.DataRow) { //decimal unitPrice = (decimal)e.Row["UnitPrice"]; //if (unitPrice < 10) //{ // e.Row.Fields["UnitPrice"].DataStyle.Bold = true; //} } }
void report_RenderingRow(object sender, ReportRowEventArgs e) { switch (e.Row.RowType) { case ReportRowType.HeaderRow: e.Row.Fields["LastPurchase"].HeaderStyle.TextRotation = -90; e.Row.Fields["UnitsInStock"].HeaderStyle.TextRotation = -90; e.Row.Fields["LowStock"].HeaderStyle.TextRotation = -90; break; case ReportRowType.DataRow: { var unitsInStock = (int)e.Row["UnitsInStock"]; if (unitsInStock < 100) { e.Row.Fields["UnitsInStock"].DataStyle.Bold = true; e.Row.Fields["UnitsInStock"].DataStyle.ForeColor = Color.Maroon; } } break; } }
void report_RenderingRow(object sender, ReportRowEventArgs e) { switch (e.Row.RowType) { case ReportRowType.HeaderRow: e.Row.Fields["LastPurchase"].HeaderStyle.TextRotation = -90; e.Row.Fields["UnitsInStock"].HeaderStyle.TextRotation = -90; e.Row.Fields["LowStock"].HeaderStyle.TextRotation = -90; break; case ReportRowType.DataRow: { var unitsInStock = (int)e.Row["UnitsInStock"]; if (unitsInStock < 100) { e.Row.Fields["UnitsInStock"].DataStyle.Bold = true; e.Row.Fields["UnitsInStock"].DataStyle.ForeColor = Color.Maroon; } } break; } }