Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
Register
Login
3
Reply
[WPF] DataGrid: apply style to text into cell from codebehin
Roberto Salemi
Apr 17 2015 6:56 AM
560
Reply
Hi,
in a dataGrid, can I apply a style to text into cell from code behind?
I know that I can use DataTrigger, but I can't add a new property to model that it is binds with datagrid.
With
DataGridRow tmpRowSelected = dgProperties.ItemContainerGenerator.ContainerFromItem(dgProperties.SelectedItem) as DataGridRow;
I get my selecte row, I would apply TextDecorations.Strikethrough to text into the cells of this row.
Thanks.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
file upload in wpf
[WPF] DataGrid Read Only but not for new row