private void btnred_Click(object sender, EventArgs e) { int teller; for (teller = 1; teller <= 16; teller++) { DataGridViewCellStyle CellStyle = new DataGridViewCellStyle(); CellStyle.BackColor = Color.Red; dgvArray.Rows[(this parts i dont know)].Cells[].Style = CellStyle; teller += 1; } }
foreach (DataGridViewRow row in dgvArray.Rows) { DataGridViewCellStyle CellStyle = new DataGridViewCellStyle(); CellStyle.BackColor = Color.Red; row.Cells["Third_Column_Name"].Style = CellStyle; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)