3 writes to AlternatingRowsDefaultCellStyle
System.Windows.Forms.Tests (3)
System\Windows\Forms\DataGridViewRowTests.cs (1)
2163
control.
AlternatingRowsDefaultCellStyle
= alternatingRowsDefaultCellStyle;
System\Windows\Forms\DataGridViewTests.cs (2)
3049
_dataGridView.
AlternatingRowsDefaultCellStyle
= new() { BackColor = Color.AliceBlue };
3053
_dataGridView.
AlternatingRowsDefaultCellStyle
= new();
43 references to AlternatingRowsDefaultCellStyle
System.Windows.Forms (43)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
806
DataGridViewCellStyle cs =
AlternatingRowsDefaultCellStyle
;
811
DataGridViewCellStyleDifferences dgvcsc = cs.GetDifferencesFrom(
AlternatingRowsDefaultCellStyle
);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
28132
return !
AlternatingRowsDefaultCellStyle
.Equals(defaultStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (39)
1928
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.BackColor.IsEmpty))
1932
else if (rowIndex % 2 == 1 && !DataGridView.
AlternatingRowsDefaultCellStyle
.BackColor.IsEmpty)
1934
inheritedCellStyleTmp.BackColor = DataGridView.
AlternatingRowsDefaultCellStyle
.BackColor;
1954
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.ForeColor.IsEmpty))
1958
else if (rowIndex % 2 == 1 && !DataGridView.
AlternatingRowsDefaultCellStyle
.ForeColor.IsEmpty)
1960
inheritedCellStyleTmp.ForeColor = DataGridView.
AlternatingRowsDefaultCellStyle
.ForeColor;
1980
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionBackColor.IsEmpty))
1984
else if (rowIndex % 2 == 1 && !DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionBackColor.IsEmpty)
1986
inheritedCellStyleTmp.SelectionBackColor = DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionBackColor;
2006
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionForeColor.IsEmpty))
2010
else if (rowIndex % 2 == 1 && !DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionForeColor.IsEmpty)
2012
inheritedCellStyleTmp.SelectionForeColor = DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionForeColor;
2033
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.Font is null))
2037
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.Font is not null)
2039
inheritedCellStyleTmp.Font = DataGridView.
AlternatingRowsDefaultCellStyle
.Font;
2059
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.IsNullValueDefault))
2064
!DataGridView.
AlternatingRowsDefaultCellStyle
.IsNullValueDefault)
2066
inheritedCellStyleTmp.NullValue = DataGridView.
AlternatingRowsDefaultCellStyle
.NullValue;
2086
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.IsDataSourceNullValueDefault))
2091
!DataGridView.
AlternatingRowsDefaultCellStyle
.IsDataSourceNullValueDefault)
2093
inheritedCellStyleTmp.DataSourceNullValue = DataGridView.
AlternatingRowsDefaultCellStyle
.DataSourceNullValue;
2113
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.Format.Length == 0))
2117
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.Format.Length != 0)
2119
inheritedCellStyleTmp.Format = DataGridView.
AlternatingRowsDefaultCellStyle
.Format;
2139
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.IsFormatProviderDefault))
2143
else if (rowIndex % 2 == 1 && !DataGridView.
AlternatingRowsDefaultCellStyle
.IsFormatProviderDefault)
2145
inheritedCellStyleTmp.FormatProvider = DataGridView.
AlternatingRowsDefaultCellStyle
.FormatProvider;
2165
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.Alignment == DataGridViewContentAlignment.NotSet))
2169
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.Alignment != DataGridViewContentAlignment.NotSet)
2171
inheritedCellStyleTmp.AlignmentInternal = DataGridView.
AlternatingRowsDefaultCellStyle
.Alignment;
2192
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.WrapMode == DataGridViewTriState.NotSet))
2196
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.WrapMode != DataGridViewTriState.NotSet)
2198
inheritedCellStyleTmp.WrapModeInternal = DataGridView.
AlternatingRowsDefaultCellStyle
.WrapMode;
2219
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.Tag is null))
2223
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.Tag is not null)
2225
inheritedCellStyleTmp.Tag = DataGridView.
AlternatingRowsDefaultCellStyle
.Tag;
2245
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.Padding == Padding.Empty))
2249
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.Padding != Padding.Empty)
2251
inheritedCellStyleTmp.PaddingInternal = DataGridView.
AlternatingRowsDefaultCellStyle
.Padding;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
810
DataGridViewCellStyle alternatingRowsDefaultCellStyle = DataGridView.
AlternatingRowsDefaultCellStyle
;