<my:DataGridTemplateColumn CanUserResize='False' Width='150' Header='{Binding MeetingName, Source={StaticResource LocStrings}}' SortMemberPath='MeetingName'> </my:DataGridTemplateColumn>
I have the above column in a Silverlight grid control. But it is giving me a XamlParser error because of how I am trying to set the Header property. Has anyone done this before? I want to do this for multiple languages.
Also my syntax for the binding to a resouce is correct because I tried it in a lable outside of the grid.
You can’t Bind to Header because it’s not a FrameworkElement. You can make the text dynamic by modifying the Header Template like this: