dotnet / dotnet/dotnet-api-docs

Question regarding Remarks section

Open
#1,850 0 comments 0 reactions 0 assignees View on GitHub
area-WPF dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

IsReadOnly just has a "get" access method yet the Remarks section instructs "Set the IsReadOnly property to true to make an individual cell read-only."
I would indeed like to make a cell read only. How is it possible to set the value of IsReadOnly to True.
I had set IsEnabled to False but that prevents me from selecting the GridRow that the cell in question is on or from scrolling past that row if I'm in that same column.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: fec15a7b-23ce-48d0-a3e7-e4cb76112f0d
* Version Independent ID: 49cf81c9-cc3f-2ae8-5dd1-a703ce4da121
* Content: [DataGridCell.IsReadOnly Property (System.Windows.Controls)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.datagridcell.isreadonly?view=netframework-4.7.2)
* Content Source: [xml/System.Windows.Controls/DataGridCell.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Controls/DataGridCell.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.