Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
Disabled CellValuePresenter showing default border
posted

Hello,

I read another topic on these forums regarding a way to make certain cells read-only, which was to set the 'IsEnabled' property of the CellValuePresenter to false. However, when I do that there seems to be a gray rectangular border in the cell by default that I'm having trouble figuring out how to get rid of. Is there a simple way to do this or does it involve a lot of work-arounds to make it happen?

I'm attaching a screenshot of what it looks like. Some of the cells in the first column will be disabled and should look just like the other columns (no gray border). Thanks in advance for any help you can provide!

Parents
  • 69686
    posted

    Another way would be to cancel the EditModeStarting event by setting the e.Cancel = true for the specific cell.

Reply Children