private void materialRaisedButton3_Click_1(object sender, EventArgs e) { dataGridView1.Columns["بل"].DisplayIndex = 0; dataGridView1.Columns["تاریخ"].DisplayIndex = 1; dataGridView1.Columns[0].Name = "بل"; dataGridView1.Columns[1].Name = "تاریخ"; dataGridView1.Columns[2].Name = "گاڑی"; dataGridView1.Columns[3].Name = "آئٹم کا نام"; dataGridView1.Columns[4].Name = "بیگ"; dataGridView1.Columns[5].Name = "وزن"; dataGridView1.Columns[6].Name = "شرح"; dataGridView1.Columns[7].Name = "شامل کریں"; dataGridView1.Columns[8].Name = "کم"; dataGridView1.Columns[9].Name = "رقم"; addData2("", "", "", "", "", "", "", "", "", "", ""); addData1("کل مقدار", "", "", "", double.Parse(totalbags.Text), double.Parse(totalweight.Text), "", "", "", totalamount.Text); CLsPrint _ClsPrint = new CLsPrint(dataGridView1, "Company", materialSingleLineTextField10.Text, materialSingleLineTextField11.Text, materialSingleLineTextField12.Text, materialSingleLineTextField13.Text); _ClsPrint.PrintForm(); dataGridView1.Columns[9].Name = "بل"; dataGridView1.Columns[8].Name = "تاریخ"; dataGridView1.Columns[7].Name = "گاڑی"; dataGridView1.Columns[6].Name = "آئٹم کا نام"; dataGridView1.Columns[5].Name = "بیگ"; dataGridView1.Columns[4].Name = "وزن"; dataGridView1.Columns[3].Name = "شرح"; dataGridView1.Columns[2].Name = "شامل کریں"; dataGridView1.Columns[1].Name = "کم"; dataGridView1.Columns[0].Name = "رقم"; }
private void materialRaisedButton2_Click(object sender, EventArgs e) { CLsPrint a = new CLsPrint(); a.ClsPrint(dataGridView1, "Print"); }