I was previously using a listview and the below would add a row to the listview while settings it's backcolor:
string[] row = { Number, Type, Name };
var listViewItem = new ListViewItem(row);
listViewItem.BackColor = Color.Green;
myListView.Items.Add(listViewItem);
Is there something similar for a grid? At the moment, all I've got is:
string[] row = { Number, Type, Name };
myGrid.Rows.Add(row);
This is note a duplicate: This question is about setting the color of a row at the time of adding it due to a condition not shown on the grid, and not needing to loop through an existing grid and set the color based on a value inside the grid.