c# dataGridView’de cell tıklayınca tüm satırı seçme

REKLAM ALANI
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0)
{
return;
}
int index = e.RowIndex;
dataGridView1.Rows[index].Selected = true;
}
REKLAM ALANI
Henüz yorum yapılmamış.