2 writes to defaultCellStyle
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGridView.cs (2)
2501this.defaultCellStyle = this.DefaultDefaultCellStyle; 2556this.defaultCellStyle = value;
19 references to defaultCellStyle
System.Windows.Forms (19)
winforms\Managed\System\WinForms\DataGridView.cs (19)
2499if (this.defaultCellStyle == null) 2502return this.defaultCellStyle; 2504else if (this.defaultCellStyle.BackColor == Color.Empty || 2505this.defaultCellStyle.ForeColor == Color.Empty || 2506this.defaultCellStyle.SelectionBackColor == Color.Empty || 2507this.defaultCellStyle.SelectionForeColor == Color.Empty || 2508this.defaultCellStyle.Font == null || 2509this.defaultCellStyle.Alignment == DataGridViewContentAlignment.NotSet || 2510this.defaultCellStyle.WrapMode == DataGridViewTriState.NotSet) 2512DataGridViewCellStyle defaultCellStyleTmp = new DataGridViewCellStyle(this.defaultCellStyle); 2514if (this.defaultCellStyle.BackColor == Color.Empty) 2518if (this.defaultCellStyle.ForeColor == Color.Empty) 2523if (this.defaultCellStyle.SelectionBackColor == Color.Empty) 2527if (this.defaultCellStyle.SelectionForeColor == Color.Empty) 2531if (this.defaultCellStyle.Font == null) 2536if (this.defaultCellStyle.Alignment == DataGridViewContentAlignment.NotSet) 2540if (this.defaultCellStyle.WrapMode == DataGridViewTriState.NotSet) 2549return this.defaultCellStyle; 2559this.defaultCellStyle.AddScope(this, DataGridViewCellStyleScopes.DataGridView);