private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
{
//row is selected
if (dataGridView1.SelectedRows.Count == 1)
{
//link label click
if (dataGridView1.Columns[e.ColumnIndex] is DataGridViewLinkColumn && (e.RowIndex >= 0))
{
num_att = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();
etat_att_marche etm = new etat_att_marche(textBox1.Text, num_att);
etm.Show();
//MessageBox.Show(num_att);
}
}
}