Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. [silverlight]How to customerize the readonly for each datagridcell

[silverlight]How to customerize the readonly for each datagridcell

Scheduled Pinned Locked Moved WPF
tutorialcsharpwpfquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Loveisasea
    wrote on last edited by
    #1

    I have a entitycollection and assigned a readonly property for each property of the entity. So that I can define whether they can be modified in Datagrid. For example,for the same property NAME, it is allowed be be edited for some entities but others not. But seems there is not a DataGridCell.IsReadOnly in silverlight as in WPF. Anyone of you have met similar case ? or know that the silverlight 5 will get this supported?

    L 1 Reply Last reply
    0
    • L Loveisasea

      I have a entitycollection and assigned a readonly property for each property of the entity. So that I can define whether they can be modified in Datagrid. For example,for the same property NAME, it is allowed be be edited for some entities but others not. But seems there is not a DataGridCell.IsReadOnly in silverlight as in WPF. Anyone of you have met similar case ? or know that the silverlight 5 will get this supported?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I am more familiar with WPF but I am not sure what you mean by DataGridCell.IsReadOnly. Are you templating the column cell and then accessing the IsReadOnly like such: Entity Binding

      Main Object binding

      If that is not available you should be able to use the DataGridTemplateColumn and set up your own binding.

      Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups