This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Can we get a property (or is there a better way) to determine if the cell is editable or not? I need to set the cell foreground based on whether or not it is editable. I know I can accomplish this through the DisplayTemplate, but most of my columns use DisplayMemberBinding. Some have the Binding Mode=TwoWay to allow editing and others don't.
Thanks! |
|
|
Hello Jared The next nightly build will include a Foreground property on DataGridColumn. This should work well since you're using DisplayMemberBinding which is a per-column feature. In the example you posted, you would set the Foreground to Blue for any column that has a TwoWay binding mode. Let me know if there are scenarios where setting the foreground of a whole column is not going to work for you. Jason Fauchelle |
|
|
The Foreground property works well! Thank you. |
|