private void btn_Modifier_Click(object sender, EventArgs e)
 {
     Edit_Company modif = new Edit_Company();
     int i = dataGridView1.CurrentRow.Index;
     modif.Refer = int.Parse(dataGridView1.Rows[i].Cells[0].Value.ToString());
     modif.CompanyName = dataGridView1.Rows[i].Cells[1].Value.ToString();
     modif.CodeCompany = dataGridView1.Rows[i].Cells[2].Value.ToString();
     modif.Show();
 }
        private void btn_Modifier_Click(object sender, EventArgs e)
        {
            Edit_Company modif = new Edit_Company();
            int          i     = dataGridView1.CurrentRow.Index;

            modif.Refer       = int.Parse(dataGridView1.Rows[i].Cells[0].Value.ToString());
            modif.CompanyName = dataGridView1.Rows[i].Cells[1].Value.ToString();
            modif.CodeCompany = dataGridView1.Rows[i].Cells[2].Value.ToString();
            modif.Show();
        }