private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
string deger = dataGridView1.CurrentRow.Cells["AD"].Value.ToString();
if(deger == "TALHA")
{
dataGridView1.DefaultCellStyle.SelectionBackColor = Color.AliceBlue;
dataGridView1.DefaultCellStyle.SelectionForeColor = Color.DarkGreen;
}else
{
dataGridView1.DefaultCellStyle.SelectionBackColor = Color.AliceBlue;
dataGridView1.DefaultCellStyle.SelectionForeColor = Color.Red;
}
}