Visual Studio 2008

Mudar cor de linha de List Box

private void listBox1_DrawItem(object sender, DrawItemEventArgs e)
{

Mais >

Mudar cor da linhas em Data Grid View

private void dataGridView1_CellFormatting(object sender,DataGridViewCellFormattingEventArgs e)
{
dataGridView1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.White;
dataGridView1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.Red;
}