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