Merhaba, herkese iyi forumlar.
Datagridview 'deki tüm satırlardaki tüm hücreleri tek satır linq ile renk değiştirmek istiyorum.
TableGridview1.Rows.Cast<DataGridViewRow>().Where(w => w.Visible = true).ToList().ForEach(f => f.Cells[2].Style = sifirenk);
böyle eksik bir kodum var. yukarıdaki kod tüm satırlardaki ikinci hücreleri renklendiriyor.

TableGridview1.Rows.Cast<DataGridViewRow>().Where( w => w.Visible = true).ToList().ForEach(f => f.Cells.Cast<DataGridViewCell>().ToList().ForEach( c => c.Style = sifirenk));
Bu şekilde çözüldü mahmut hocama teşekkür ederim.