Hello,
Please see below:
int i = 0;
foreach (DataGridViewRow dgr in this.dataGridView1.Rows)
{
dgr.DefaultCellStyle.BackColor = ((i % 2) == 0) ? Color.LightGray : Color.DarkGray;
i++;
}
Can anybody tell me how the above code can be converted into LINQ please?
Many thanks in advance