3 writes to AlternatingRowsDefaultCellStyle
System.Windows.Forms.Tests (3)
System\Windows\Forms\DataGridViewRowTests.cs (1)
2161
control.
AlternatingRowsDefaultCellStyle
= alternatingRowsDefaultCellStyle;
System\Windows\Forms\DataGridViewTests.cs (2)
3047
_dataGridView.
AlternatingRowsDefaultCellStyle
= new() { BackColor = Color.AliceBlue };
3051
_dataGridView.
AlternatingRowsDefaultCellStyle
= new();
43 references to AlternatingRowsDefaultCellStyle
System.Windows.Forms (43)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
810
DataGridViewCellStyle cs =
AlternatingRowsDefaultCellStyle
;
815
DataGridViewCellStyleDifferences dgvcsc = cs.GetDifferencesFrom(
AlternatingRowsDefaultCellStyle
);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
28124
return !
AlternatingRowsDefaultCellStyle
.Equals(defaultStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (39)
1939
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.BackColor.IsEmpty))
1943
else if (rowIndex % 2 == 1 && !DataGridView.
AlternatingRowsDefaultCellStyle
.BackColor.IsEmpty)
1945
inheritedCellStyleTmp.BackColor = DataGridView.
AlternatingRowsDefaultCellStyle
.BackColor;
1965
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.ForeColor.IsEmpty))
1969
else if (rowIndex % 2 == 1 && !DataGridView.
AlternatingRowsDefaultCellStyle
.ForeColor.IsEmpty)
1971
inheritedCellStyleTmp.ForeColor = DataGridView.
AlternatingRowsDefaultCellStyle
.ForeColor;
1991
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionBackColor.IsEmpty))
1995
else if (rowIndex % 2 == 1 && !DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionBackColor.IsEmpty)
1997
inheritedCellStyleTmp.SelectionBackColor = DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionBackColor;
2017
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionForeColor.IsEmpty))
2021
else if (rowIndex % 2 == 1 && !DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionForeColor.IsEmpty)
2023
inheritedCellStyleTmp.SelectionForeColor = DataGridView.
AlternatingRowsDefaultCellStyle
.SelectionForeColor;
2044
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.Font is null))
2048
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.Font is not null)
2050
inheritedCellStyleTmp.Font = DataGridView.
AlternatingRowsDefaultCellStyle
.Font;
2070
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.IsNullValueDefault))
2075
!DataGridView.
AlternatingRowsDefaultCellStyle
.IsNullValueDefault)
2077
inheritedCellStyleTmp.NullValue = DataGridView.
AlternatingRowsDefaultCellStyle
.NullValue;
2097
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.IsDataSourceNullValueDefault))
2102
!DataGridView.
AlternatingRowsDefaultCellStyle
.IsDataSourceNullValueDefault)
2104
inheritedCellStyleTmp.DataSourceNullValue = DataGridView.
AlternatingRowsDefaultCellStyle
.DataSourceNullValue;
2124
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.Format.Length == 0))
2128
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.Format.Length != 0)
2130
inheritedCellStyleTmp.Format = DataGridView.
AlternatingRowsDefaultCellStyle
.Format;
2150
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.IsFormatProviderDefault))
2154
else if (rowIndex % 2 == 1 && !DataGridView.
AlternatingRowsDefaultCellStyle
.IsFormatProviderDefault)
2156
inheritedCellStyleTmp.FormatProvider = DataGridView.
AlternatingRowsDefaultCellStyle
.FormatProvider;
2176
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.Alignment == DataGridViewContentAlignment.NotSet))
2180
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.Alignment != DataGridViewContentAlignment.NotSet)
2182
inheritedCellStyleTmp.AlignmentInternal = DataGridView.
AlternatingRowsDefaultCellStyle
.Alignment;
2203
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.WrapMode == DataGridViewTriState.NotSet))
2207
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.WrapMode != DataGridViewTriState.NotSet)
2209
inheritedCellStyleTmp.WrapModeInternal = DataGridView.
AlternatingRowsDefaultCellStyle
.WrapMode;
2230
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.Tag is null))
2234
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.Tag is not null)
2236
inheritedCellStyleTmp.Tag = DataGridView.
AlternatingRowsDefaultCellStyle
.Tag;
2256
(rowIndex % 2 == 0 || DataGridView.
AlternatingRowsDefaultCellStyle
.Padding == Padding.Empty))
2260
else if (rowIndex % 2 == 1 && DataGridView.
AlternatingRowsDefaultCellStyle
.Padding != Padding.Empty)
2262
inheritedCellStyleTmp.PaddingInternal = DataGridView.
AlternatingRowsDefaultCellStyle
.Padding;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
806
DataGridViewCellStyle alternatingRowsDefaultCellStyle = DataGridView.
AlternatingRowsDefaultCellStyle
;