Created On: 30 January 2013
Problem:
Is it possible to set the background color of any given cell in a Windows Form dataGridView control to one other than the default?
Resolution:
Yes, you can set the background color of the individual cells in the same place where you set the ReadOnly property.
This should be placed in the Form_Shown event handler in order for it to take effect immediately.
Example:
set dataGridView1::Rows[sub-1]::Cells["Amount"]::ReadOnly to true
set dataGridView1::Rows[sub-1]::Cells["Amount"]::Style::BackColor to type Color::Red
Old KB# 36768



