// Get the value of the current cell in the CategoryName column in the master report. int balance =Convert.ToInt32(GetCurrentColumnValue(Sum["stock"]));
private void GroupHeader1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { try { int balance = Convert.ToInt32(xrTableCell10.Text); int min = Convert.ToInt32(xrTableCell8.Text); if (balance <= min) { e.Cancel = true; } else if (balance > min) { e.Cancel = false; } } catch(Exception ex) { Msg.Show("", ex.ToString(), 0); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)