Base:
property
ReadOnly
System.Windows.Forms.DataGridViewBand.ReadOnly
41 writes to ReadOnly
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
11010
dataGridViewRow.
ReadOnly
= false;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1763
ReadOnly
= false;
System.Windows.Forms.Tests (39)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
410
dataGridView.Rows[0].
ReadOnly
= isReadOnly;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
651
dataGridView.Rows[1].
ReadOnly
= true;
652
dataGridView.Rows[2].
ReadOnly
= false;
System\Windows\Forms\DataGridViewCellTests.cs (10)
1426
ReadOnly
= true,
1487
row.
ReadOnly
= true;
1599
ReadOnly
= rowReadOnly
1628
row.
ReadOnly
= rowReadOnly;
1704
ReadOnly
= rowReadOnly
1736
ReadOnly
= rowReadOnly
1834
row.
ReadOnly
= rowReadOnly;
1885
row.
ReadOnly
= rowReadOnly;
4441
ReadOnly
= true,
4611
row.
ReadOnly
= true;
System\Windows\Forms\DataGridViewHeaderCellTests.cs (6)
566
ReadOnly
= rowReadOnly
579
ReadOnly
= rowReadOnly
628
row.
ReadOnly
= rowReadOnly;
650
row.
ReadOnly
= rowReadOnly;
673
row.
ReadOnly
= rowReadOnly;
2466
ReadOnly
= true,
System\Windows\Forms\DataGridViewRowTests.cs (20)
2552
ReadOnly
= value
2558
row.
ReadOnly
= value;
2563
row.
ReadOnly
= !value;
2583
row.
ReadOnly
= value;
2588
row.
ReadOnly
= value;
2593
row.
ReadOnly
= !value;
2608
row.
ReadOnly
= true;
2627
row.
ReadOnly
= false;
2633
row.
ReadOnly
= true;
2639
row.
ReadOnly
= false;
2657
row.
ReadOnly
= false;
2663
row.
ReadOnly
= true;
2669
row.
ReadOnly
= false;
2695
row.
ReadOnly
= true;
2700
row.
ReadOnly
= true;
2705
row.
ReadOnly
= false;
2711
row.
ReadOnly
= true;
2725
Assert.Throws<InvalidOperationException>(() => row.
ReadOnly
= true);
4029
source.
ReadOnly
= true;
4526
row.
ReadOnly
= true;
54 references to ReadOnly
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
11007
if (ReadOnly && dataGridViewRow.DataGridView is null && dataGridViewRow.
ReadOnly
)
14850
Debug.Assert(!Rows[dataGridViewCell.RowIndex].
ReadOnly
);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
437
if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0) && OwningRow.
ReadOnly
)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (3)
278
throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(
ReadOnly
)));
1753
if (
ReadOnly
&& !readOnly)
1765
else if (!
ReadOnly
&& readOnly)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
474
internal override bool IsReadOnly => _owningDataGridViewRow?.
ReadOnly
?? false;
System.Windows.Forms.Tests (47)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (3)
391
Assert.Equal(row.
ReadOnly
, row.AccessibilityObject.IsReadOnly);
416
Assert.Equal(row.
ReadOnly
, row.AccessibilityObject.IsReadOnly);
441
Assert.Equal(row.
ReadOnly
, row.AccessibilityObject.IsReadOnly);
System\Windows\Forms\DataGridViewCellTests.cs (18)
1679
Assert.False(row.
ReadOnly
);
1685
Assert.False(row.
ReadOnly
);
1691
Assert.False(row.
ReadOnly
);
1711
Assert.Equal(rowReadOnly && value, row.
ReadOnly
);
1717
Assert.Equal(rowReadOnly && value, row.
ReadOnly
);
1723
Assert.False(row.
ReadOnly
);
1746
Assert.Equal(rowReadOnly && value, row.
ReadOnly
);
1753
Assert.Equal(rowReadOnly && value, row.
ReadOnly
);
1760
Assert.False(row.
ReadOnly
);
1793
Assert.False(row.
ReadOnly
);
1800
Assert.False(row.
ReadOnly
);
1807
Assert.False(row.
ReadOnly
);
1839
Assert.Equal(readOnly || (rowReadOnly && value), row.
ReadOnly
);
1846
Assert.Equal(readOnly || (rowReadOnly && value), row.
ReadOnly
);
1853
Assert.Equal(readOnly, row.
ReadOnly
);
1892
Assert.Equal(readOnly || (rowReadOnly && value), row.
ReadOnly
);
1900
Assert.Equal(readOnly || (rowReadOnly && value), row.
ReadOnly
);
1908
Assert.Equal(readOnly, row.
ReadOnly
);
System\Windows\Forms\DataGridViewRowTests.cs (26)
42
Assert.False(row.
ReadOnly
);
2515
Assert.Equal(expected, row.
ReadOnly
);
2529
Assert.Equal(dataGridViewReadOnly, row.
ReadOnly
);
2543
Assert.Throws<InvalidOperationException>(() => row.
ReadOnly
);
2554
Assert.Equal(value, row.
ReadOnly
);
2559
Assert.Equal(value, row.
ReadOnly
);
2564
Assert.Equal(!value, row.
ReadOnly
);
2584
Assert.Equal(dataGridViewReadOnly || value, row.
ReadOnly
);
2589
Assert.Equal(dataGridViewReadOnly || value, row.
ReadOnly
);
2594
Assert.Equal(dataGridViewReadOnly || !value, row.
ReadOnly
);
2609
Assert.True(row.
ReadOnly
);
2613
Assert.False(row.
ReadOnly
);
2628
Assert.False(row.
ReadOnly
);
2634
Assert.True(row.
ReadOnly
);
2640
Assert.False(row.
ReadOnly
);
2658
Assert.False(row.
ReadOnly
);
2664
Assert.True(row.
ReadOnly
);
2670
Assert.False(row.
ReadOnly
);
2696
Assert.True(row.
ReadOnly
);
2701
Assert.True(row.
ReadOnly
);
2706
Assert.False(row.
ReadOnly
);
2712
Assert.True(row.
ReadOnly
);
3916
Assert.False(row.
ReadOnly
);
3956
Assert.False(row.
ReadOnly
);
3999
Assert.False(row.
ReadOnly
);
4048
Assert.True(row.
ReadOnly
);