private void Avvik_Load(object sender, EventArgs e) { lblOrderNumberTitle.Text = x.ToString(); var mySql = new mySql(); mySql.loadAvvik(x); dataGridViewTest.DataSource = bindingSourceOrders; mySql.GetData(mySql.loadAvvikStatement, bindingSourceOrders); dataGridViewTest.Columns[0].Visible = false; dataGridViewTest.Columns[1].Visible = false; dataGridViewTest.Columns[2].Visible = false; dataGridViewTest.Columns[3].Visible = false; dataGridViewTest.Columns["variety"].Width = 200; dataGridViewTest.Columns["boxes"].DisplayIndex = 15; mySql.fillupLabelsAvvik(lblOrdreNumber, lblDeparture, lblArrival, lblDatecode, lblAmountBoxes, dataGridViewTest); }