1 override of ReadOnly
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
118
public override bool
ReadOnly
33 writes to ReadOnly
System.Windows.Forms.Tests (33)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
385
dataGridView.Rows[0].Cells[0].
ReadOnly
= isReadOnly;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
141
cell.
ReadOnly
= true;
650
dataGridView.Rows[0].Cells[0].
ReadOnly
= true;
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
117
cell.
ReadOnly
= true;
System\Windows\Forms\DataGridViewCellTests.cs (25)
1662
Assert.Throws<InvalidOperationException>(() => cell.
ReadOnly
= true);
1665
cell.
ReadOnly
= false;
1677
cell.
ReadOnly
= value;
1683
cell.
ReadOnly
= value;
1689
cell.
ReadOnly
= !value;
1709
cell.
ReadOnly
= value;
1715
cell.
ReadOnly
= value;
1721
cell.
ReadOnly
= !value;
1743
cell1.
ReadOnly
= value;
1750
cell1.
ReadOnly
= value;
1757
cell1.
ReadOnly
= !value;
1791
cell.
ReadOnly
= value;
1798
cell.
ReadOnly
= value;
1805
cell.
ReadOnly
= !value;
1837
cell.
ReadOnly
= value;
1844
cell.
ReadOnly
= value;
1851
cell.
ReadOnly
= !value;
1889
cell1.
ReadOnly
= value;
1897
cell1.
ReadOnly
= value;
1905
cell1.
ReadOnly
= !value;
1936
cell.
ReadOnly
= true;
1941
cell.
ReadOnly
= true;
1946
cell.
ReadOnly
= false;
1952
cell.
ReadOnly
= true;
1969
Assert.Throws<InvalidOperationException>(() => cell.
ReadOnly
= value);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (2)
773
Assert.Throws<InvalidOperationException>(() => cell.
ReadOnly
= value);
843
Assert.Throws<InvalidOperationException>(() => cell.
ReadOnly
= value);
System\Windows\Forms\DataGridViewRowTests.cs (2)
2624
cell2.
ReadOnly
= true;
2654
row.Cells[1].
ReadOnly
= true;
77 references to ReadOnly
System.Windows.Forms (20)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
12831
if (!dataGridViewCell.
ReadOnly
14849
&& !dataGridViewCell.
ReadOnly
16864
&& !Rows[_ptCurrentCell.Y].Cells[_ptCurrentCell.X].
ReadOnly
) // Un-shares the row
27534
if (dataGridViewCell.
ReadOnly
)
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
438
if (dataGridViewCell!.
ReadOnly
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
461
if (value !=
ReadOnly
&& !DataGridView.ReadOnly)
471
if (value !=
ReadOnly
)
1845
if (
ReadOnly
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (5)
40
return !Owner.
ReadOnly
? SR.DataGridView_AccCellDefaultAction : string.Empty;
144
if (_owner.
ReadOnly
)
224
if (_owner is DataGridViewHeaderCell || _owner.
ReadOnly
|| _owner.DataGridView is null || _owner.OwningRow is null)
282
if (dataGridViewCell.
ReadOnly
)
748
internal override bool IsReadOnly => _owner?.
ReadOnly
?? false;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (3)
98
if (oldDataGridViewCell.
ReadOnly
)
277
Debug.Assert(!dataGridViewCell.
ReadOnly
);
347
if (dataGridViewCell.
ReadOnly
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (2)
56
if (Owner.
ReadOnly
)
100
if (!dataGridViewCell.
ReadOnly
&& dataGridViewCell.OwningColumn is not null && dataGridViewCell.OwningRow is not null)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1252
Debug.Assert(!
ReadOnly
);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
509
Debug.Assert(!
ReadOnly
);
System.Windows.Forms.Tests (57)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (3)
395
Assert.Equal(cell.
ReadOnly
, cell.AccessibilityObject.IsReadOnly);
420
Assert.Equal(cell.
ReadOnly
, cell.AccessibilityObject.IsReadOnly);
445
Assert.Equal(cell.
ReadOnly
, cell.AccessibilityObject.IsReadOnly);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (1)
660
Assert.Equal(cell.
ReadOnly
, value);
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
119
Assert.True(cell.
ReadOnly
);
System\Windows\Forms\DataGridViewCellTests.cs (37)
40
Assert.False(cell.
ReadOnly
);
1590
Assert.Equal(expected, cell.
ReadOnly
);
1603
Assert.Equal(rowReadOnly, cell.
ReadOnly
);
1631
Assert.Equal(readOnly || rowReadOnly || columnReadOnly, cell.
ReadOnly
);
1655
Assert.False(cell.
ReadOnly
);
1663
Assert.False(cell.
ReadOnly
);
1666
Assert.False(cell.
ReadOnly
);
1678
Assert.Equal(value, cell.
ReadOnly
);
1684
Assert.Equal(value, cell.
ReadOnly
);
1690
Assert.True(cell.
ReadOnly
);
1710
Assert.Equal(value, cell.
ReadOnly
);
1716
Assert.Equal(value, cell.
ReadOnly
);
1722
Assert.Equal(!rowReadOnly || !value, cell.
ReadOnly
);
1744
Assert.Equal(value, cell1.
ReadOnly
);
1745
Assert.Equal(rowReadOnly, cell2.
ReadOnly
);
1751
Assert.Equal(value, cell1.
ReadOnly
);
1752
Assert.Equal(rowReadOnly, cell2.
ReadOnly
);
1758
Assert.Equal(!rowReadOnly || !value, cell1.
ReadOnly
);
1759
Assert.Equal(rowReadOnly, cell2.
ReadOnly
);
1792
Assert.Equal(value, cell.
ReadOnly
);
1799
Assert.Equal(value, cell.
ReadOnly
);
1806
Assert.Equal(!value, cell.
ReadOnly
);
1838
Assert.Equal(readOnly || value, cell.
ReadOnly
);
1845
Assert.Equal(readOnly || value, cell.
ReadOnly
);
1852
Assert.Equal(readOnly || !value, cell.
ReadOnly
);
1890
Assert.Equal(readOnly || value, cell1.
ReadOnly
);
1891
Assert.Equal(readOnly || rowReadOnly, cell2.
ReadOnly
);
1898
Assert.Equal(readOnly || value, cell1.
ReadOnly
);
1899
Assert.Equal(readOnly || rowReadOnly, cell2.
ReadOnly
);
1906
Assert.Equal(readOnly || !value, cell1.
ReadOnly
);
1907
Assert.Equal(readOnly || rowReadOnly, cell2.
ReadOnly
);
1937
Assert.True(cell.
ReadOnly
);
1942
Assert.True(cell.
ReadOnly
);
1947
Assert.False(cell.
ReadOnly
);
1953
Assert.True(cell.
ReadOnly
);
3352
Assert.False(cell.
ReadOnly
);
3389
Assert.False(cell.
ReadOnly
);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (3)
631
Assert.True(cell.
ReadOnly
);
715
Assert.True(cell.
ReadOnly
);
774
Assert.True(cell.
ReadOnly
);
System\Windows\Forms\DataGridViewRowTests.cs (12)
2629
Assert.False(cell1.
ReadOnly
);
2630
Assert.True(cell2.
ReadOnly
);
2635
Assert.True(cell1.
ReadOnly
);
2636
Assert.True(cell2.
ReadOnly
);
2641
Assert.False(cell1.
ReadOnly
);
2642
Assert.False(cell2.
ReadOnly
);
2659
Assert.False(row.Cells[0].
ReadOnly
);
2660
Assert.False(row.Cells[1].
ReadOnly
);
2665
Assert.True(row.Cells[0].
ReadOnly
);
2666
Assert.True(row.Cells[1].
ReadOnly
);
2671
Assert.False(row.Cells[0].
ReadOnly
);
2672
Assert.False(row.Cells[1].
ReadOnly
);