43 references to AlternatingRowsDefaultCellStyle
System.Windows.Forms (43)
winforms\Managed\System\WinForms\DataGridView.cs (2)
977
DataGridViewCellStyle cs = this.
AlternatingRowsDefaultCellStyle
;
984
DataGridViewCellStyleDifferences dgvcsc = cs.GetDifferencesFrom(this.
AlternatingRowsDefaultCellStyle
);
winforms\Managed\System\WinForms\DataGridViewCell.cs (39)
2222
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.BackColor.IsEmpty))
2226
else if (rowIndex % 2 == 1 && !this.DataGridView.
AlternatingRowsDefaultCellStyle
.BackColor.IsEmpty)
2228
inheritedCellStyleTmp.BackColor = this.DataGridView.
AlternatingRowsDefaultCellStyle
.BackColor;
2248
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.ForeColor.IsEmpty))
2252
else if (rowIndex % 2 == 1 && !this.DataGridView.
AlternatingRowsDefaultCellStyle
.ForeColor.IsEmpty)
2254
inheritedCellStyleTmp.ForeColor = this.DataGridView.
AlternatingRowsDefaultCellStyle
.ForeColor;
2274
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionBackColor.IsEmpty))
2278
else if (rowIndex % 2 == 1 && !this.DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionBackColor.IsEmpty)
2280
inheritedCellStyleTmp.SelectionBackColor = this.DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionBackColor;
2300
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionForeColor.IsEmpty))
2304
else if (rowIndex % 2 == 1 && !this.DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionForeColor.IsEmpty)
2306
inheritedCellStyleTmp.SelectionForeColor = this.DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionForeColor;
2327
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.Font == null))
2331
else if (rowIndex % 2 == 1 && this.DataGridView.
AlternatingRowsDefaultCellStyle
.Font != null)
2333
inheritedCellStyleTmp.Font = this.DataGridView.
AlternatingRowsDefaultCellStyle
.Font;
2353
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.IsNullValueDefault))
2358
!this.DataGridView.
AlternatingRowsDefaultCellStyle
.IsNullValueDefault)
2360
inheritedCellStyleTmp.NullValue = this.DataGridView.
AlternatingRowsDefaultCellStyle
.NullValue;
2380
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.IsDataSourceNullValueDefault))
2385
!this.DataGridView.
AlternatingRowsDefaultCellStyle
.IsDataSourceNullValueDefault)
2387
inheritedCellStyleTmp.DataSourceNullValue = this.DataGridView.
AlternatingRowsDefaultCellStyle
.DataSourceNullValue;
2407
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.Format.Length == 0))
2411
else if (rowIndex % 2 == 1 && this.DataGridView.
AlternatingRowsDefaultCellStyle
.Format.Length != 0)
2413
inheritedCellStyleTmp.Format = this.DataGridView.
AlternatingRowsDefaultCellStyle
.Format;
2433
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.IsFormatProviderDefault))
2437
else if (rowIndex % 2 == 1 && !this.DataGridView.
AlternatingRowsDefaultCellStyle
.IsFormatProviderDefault)
2439
inheritedCellStyleTmp.FormatProvider = this.DataGridView.
AlternatingRowsDefaultCellStyle
.FormatProvider;
2459
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.Alignment == DataGridViewContentAlignment.NotSet))
2463
else if (rowIndex % 2 == 1 && this.DataGridView.
AlternatingRowsDefaultCellStyle
.Alignment != DataGridViewContentAlignment.NotSet)
2465
inheritedCellStyleTmp.AlignmentInternal = this.DataGridView.
AlternatingRowsDefaultCellStyle
.Alignment;
2486
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.WrapMode == DataGridViewTriState.NotSet))
2490
else if (rowIndex % 2 == 1 && this.DataGridView.
AlternatingRowsDefaultCellStyle
.WrapMode != DataGridViewTriState.NotSet)
2492
inheritedCellStyleTmp.WrapModeInternal = this.DataGridView.
AlternatingRowsDefaultCellStyle
.WrapMode;
2513
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.Tag == null))
2517
else if (rowIndex % 2 == 1 && this.DataGridView.
AlternatingRowsDefaultCellStyle
.Tag != null)
2519
inheritedCellStyleTmp.Tag = this.DataGridView.
AlternatingRowsDefaultCellStyle
.Tag;
2539
(rowIndex % 2 == 0 || this.DataGridView.
AlternatingRowsDefaultCellStyle
.Padding == Padding.Empty))
2543
else if (rowIndex % 2 == 1 && this.DataGridView.
AlternatingRowsDefaultCellStyle
.Padding != Padding.Empty)
2545
inheritedCellStyleTmp.PaddingInternal = this.DataGridView.
AlternatingRowsDefaultCellStyle
.Padding;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
28138
return !this.
AlternatingRowsDefaultCellStyle
.Equals(defaultStyle);
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
888
DataGridViewCellStyle alternatingRowsDefaultCellStyle = this.DataGridView.
AlternatingRowsDefaultCellStyle
;