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
445
Read-write property vs. read-only property
posted

In xamDataGrid, can I get a column containing read-write properties to behave the same was as read-only properties do?  I have set the field to be read-only, and whereas it's true that the value can't be edited, the field does appear differently when it has focus.  This does not happen with fields based on read-only properties.  Assuming it's relatively easy (i.e. without having to create templates for different states), how would I do that?

Thanks!

Brad.

Parents
No Data
Reply
  • 22015
    posted

    Hello Brad,

     

    Thank you for posting!

     

    I have been looking into your post. If you would like the Field, that is read-only and the property is not, to be grayed out I can suggest setting the IsEnabled property of the Field itself. This way the cell of the Field would be appear with a gray background.

     

    If this suggestion does not satisfy your need, would you please provide me with more details on what appearance the Field should have and how it should behave, when the IsReadOnly property is set and the property to which the Field is bound is not read-only?

     

    Looking forward to hearing from you.

Children