je vais poster mon code, is ca peut aider....
private
void dataGridView1_CellContentClick(
object sender,
DataGridViewCellEventArgs e)
{
if (e.ColumnIndex != -1 && e.RowIndex != -1)
{
int x, y;
x = e.RowIndex;
y = e.ColumnIndex;
MessageBox.Show("" + x + ":" + y + "", "test", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
malheureurement, cela ne fonctionne pas du tout! et je ne trouve pas pourquoi.