80 references to ReadOnly
System.Windows.Forms (80)
winforms\Managed\System\WinForms\DataGridView.cs (2)
3733
(rowState & DataGridViewElementStates.
ReadOnly
) != 0 ||
3735
dataGridViewCell.StateIncludes(DataGridViewElementStates.
ReadOnly
);
winforms\Managed\System\WinForms\DataGridViewBand.cs (9)
546
return ((this.State & DataGridViewElementStates.
ReadOnly
) != 0 ||
568
OnStateChanging(DataGridViewElementStates.
ReadOnly
);
574
OnStateChanging(DataGridViewElementStates.
ReadOnly
);
580
if (((this.State & DataGridViewElementStates.
ReadOnly
) != 0) != value)
594
this.StateInternal = this.State | DataGridViewElementStates.
ReadOnly
;
598
this.StateInternal = this.State & ~DataGridViewElementStates.
ReadOnly
;
612
this.StateInternal = this.State | DataGridViewElementStates.
ReadOnly
;
616
this.StateInternal = this.State & ~DataGridViewElementStates.
ReadOnly
;
619
OnStateChanged(DataGridViewElementStates.
ReadOnly
);
winforms\Managed\System\WinForms\DataGridViewCell.cs (9)
580
if ((this.State & DataGridViewElementStates.
ReadOnly
) != 0)
607
this.DataGridView.OnDataGridViewElementStateChanging(this, -1, DataGridViewElementStates.
ReadOnly
);
636
this.StateInternal = this.State | DataGridViewElementStates.
ReadOnly
;
640
this.StateInternal = this.State & ~DataGridViewElementStates.
ReadOnly
;
644
this.DataGridView.OnDataGridViewElementStateChanged(this, -1, DataGridViewElementStates.
ReadOnly
);
1120
DataGridViewElementStates orFlags = DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Resizable | DataGridViewElementStates.Selected;
2076
state |= (this.owningRow.GetState(-1) & (DataGridViewElementStates.Frozen | DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible));
2101
state |= (rowEffectiveState & (DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected));
2102
state |= (this.owningColumn.State & (DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected));
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (15)
527
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
588
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) == 0);
641
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) == 0);
658
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
706
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
741
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
746
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
778
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
783
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
820
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
825
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
892
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
897
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1009
includeFilter == DataGridViewElementStates.
ReadOnly
||
1038
includeFilter == DataGridViewElementStates.
ReadOnly
||
winforms\Managed\System\WinForms\DataGridViewElement.cs (1)
38
this.state = dgveTemplate.State & (DataGridViewElementStates.Frozen | DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Resizable | DataGridViewElementStates.ResizableSet | DataGridViewElementStates.Visible);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
328
DataGridViewElementStates state = DataGridViewElementStates.ResizableSet | DataGridViewElementStates.
ReadOnly
;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (25)
6913
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
6950
readOnlyRequired = (includeFilter & DataGridViewElementStates.
ReadOnly
) == DataGridViewElementStates.
ReadOnly
;
7004
if ((includeFilter == DataGridViewElementStates.
ReadOnly
&& this.ReadOnly) ||
7013
readOnlyRequired = (includeFilter & DataGridViewElementStates.
ReadOnly
) == DataGridViewElementStates.
ReadOnly
;
7073
(rowState & DataGridViewElementStates.
ReadOnly
) != 0 ||
7075
dataGridViewCell.StateIncludes(DataGridViewElementStates.
ReadOnly
);
10781
if ((rowState & DataGridViewElementStates.
ReadOnly
) == 0 &&
11164
if ((this.ReadOnly || dataGridViewColumn.ReadOnly) && dataGridViewCell.StateIncludes(DataGridViewElementStates.
ReadOnly
))
13184
if (e.StateChanged == DataGridViewElementStates.
ReadOnly
&&
14898
if (e.StateChanged == DataGridViewElementStates.
ReadOnly
&&
14906
(this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.
ReadOnly
) == 0 &&
15227
case DataGridViewElementStates.
ReadOnly
:
15286
case DataGridViewElementStates.
ReadOnly
:
15288
(this.Rows.GetRowState(rowIndex) & DataGridViewElementStates.
ReadOnly
) == 0 &&
15323
case DataGridViewElementStates.
ReadOnly
:
19212
if (e.StateChanged == DataGridViewElementStates.
ReadOnly
&&
19218
if ((newState & DataGridViewElementStates.
ReadOnly
) == 0 &&
27498
if ((rowState & DataGridViewElementStates.
ReadOnly
) == 0 &&
27531
if ((rowState & DataGridViewElementStates.
ReadOnly
) != 0)
27533
this.Rows.SetRowState(rowIndex, DataGridViewElementStates.
ReadOnly
, false);
27596
if (((rowState & DataGridViewElementStates.
ReadOnly
) != 0) != readOnly)
27612
this.Rows.SetRowState(rowIndex, DataGridViewElementStates.
ReadOnly
, true);
27617
this.Rows.SetRowState(rowIndex, DataGridViewElementStates.
ReadOnly
, false);
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
1443
return (this.GetState(rowIndex) & DataGridViewElementStates.
ReadOnly
) != 0 ||
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (17)
1028
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1074
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1079
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1120
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1176
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1203
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1208
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1229
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1256
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1261
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1282
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1358
DataGridViewElementStates.
ReadOnly
| DataGridViewElementStates.Selected | DataGridViewElementStates.Visible)) != 0)
1967
includeFilter == DataGridViewElementStates.
ReadOnly
||
2002
includeFilter == DataGridViewElementStates.
ReadOnly
||
2398
Debug.Assert(state == DataGridViewElementStates.Displayed || state == DataGridViewElementStates.Selected || state == DataGridViewElementStates.
ReadOnly
|| state == DataGridViewElementStates.Resizable || state == DataGridViewElementStates.Frozen || state == DataGridViewElementStates.Visible);
2408
state == DataGridViewElementStates.
ReadOnly
)
2448
case DataGridViewElementStates.
ReadOnly
: