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
Adeel Ansari
NA
7
0
Binding DataGrid Column Header at Runtime
Sep 1 2009 2:38 AM
i have Silverlight Datagrid,i have to make my column header name at runtime ,i successfully bind the column with my class object means binding at runtime , but the problem is that column header name is not showing dynamic text according to my resource file infect the text is not showing at all,anyone help me out to solve this issue in showing the text of column header dynamically,its really urgent, thankz in advance,my code for 1 column is
<
data
:
DataGridTextColumn
Header
="
TuesdayHeader
"
Binding
="{
Binding
Tuesday
,
Converter
={
StaticResource
VisibilityConverter
}}">
<
data
:
DataGridTextColumn.HeaderStyle
>
<
Style
TargetType
="primitives:DataGridColumnHeader">
<
Setter
Property
="ContentTemplate">
<
Setter.Value
>
<
DataTemplate
>
<
TextBlock
Text
="{
Binding
TuesdayHeader
,
Source
={
StaticResource
VisibilityConverter
}}"/>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
data
:
DataGridTextColumn.HeaderStyle
>
</
data
:
DataGridTextColumn
>
Reply
Answers (
2
)
Background Worker Cancel Issue
Grouping of Cells or Merging of Cells in Datagrid