I have a custom DataGridView, let\'s say as such:
public MyGridView : DataGridView
{
public MyGridView()
{
BackgroundColor = Co
There is a simpler way to assign DefaultValue to Color:
public class MyGridView : DataGridView
{
public MyGridView()
{
BackgroundColor = Color.Red;
}
[DefaultValue(typeof(Color), "Red")]
public new Color BackgroundColor
{
get { return base.BackgroundColor; }
set { base.BackgroundColor = value; }
}
}