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