private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { int index = dataGridView1.SelectedCells[0].RowIndex; DataGridViewRow row = dataGridView1.Rows[index]; string w = row.Cells[0].Value.ToString(); string x = row.Cells[1].Value.ToString(); string y = row.Cells[2].Value.ToString(); checkout a = new checkout(x,w,y); a.Show(); }
private void button3_Click(object sender, EventArgs e) { checkout c = new checkout(); c.Show(); }