private void BeginPrint(object sender, PrintEventArgs e) { if (PRINT == false) { MyDataGridViewPrinter.SetPages(); } }