DataGridCell.IsReadOnly Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the cell can be put in edit mode.
public:
property bool IsReadOnly { bool get(); };
public bool IsReadOnly { get; }
member this.IsReadOnly : bool
Public ReadOnly Property IsReadOnly As Boolean
true
if the cell cannot be put in edit mode; otherwise, false
. The registered default is false
. For more information about what can influence the value, see DependencyProperty.
Set the IsReadOnly property to true
to make an individual cell read-only. Set the DataGridColumn.IsReadOnly property to true
to make all cells in an individual column read-only. Set the DataGrid.IsReadOnly property to true
to make all cells in the DataGrid read-only If there is a conflict between the settings at the DataGrid, column, and cell levels, a value of true
takes precedence over a value of false
.
제품 | 버전 |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.