if (dataGridView1[e.ColumnIndex, e.RowIndex].Style.BackColor == Color.Empty) dataGridView1[e.ColumnIndex, e.RowIndex].Style.BackColor = Color.Black; else dataGridView1[e.ColumnIndex, e.RowIndex].Style.BackColor = Color.Empty;
if(e.ColumnIndex<=10) { ////ur code shown in above question }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)