TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Roberto Salemi
NA
146
140.9k
[WPF] DataGrid: apply style to text into cell from codebehin
Apr 17 2015 6:56 AM
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.
Reply
Answers (
3
)
file upload in wpf
[WPF] DataGrid Read Only but not for new row