Hocam bu seferde Row ların altı kırmızı çıkıyor çözemedim yine son bir kez el atsan
private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
{
foreach (dataGridViewRow row in dataGridView1.Rows)
{
string RowType = row.Cells[1].Value.ToString();
if (RowType == "toptanci")
{
e.Row.Cells[1].BackColor = System.Drawing.Color.Green;
}
else if (RowType == "perakendeci")
{
e.Row.Cells[1].BackColor = System.Drawing.Color.Red;
}Resim de ekledim