how change specific row back color in DataGrid?
-
how change specific row back color in DataGrid? i have a DataGrid with some rows, how change row back color, like set row 1 with back color is red, row 2 is blue, row 3 is yellow thanks
What infomation are you showing like a report
-
What infomation are you showing like a report
-
i think can be done, but i don't know how? like properties BackColor of DataGrid, it change bg color of odd number row
-
What infomation are you showing like a report
Sorry a bit of a late reply but hopefully this will still help you. You can set a rows color using the following line: dataGridView1.Rows[i].DefaultCellStyle.BackColor = Color.Blue; (where 'i' is the current row as i am assuming you will have a loop so you can set the color depending on the row index). You can also set the default row and cell styles using the properties window however this will apply to every cell and row.