This question is locked. New answers and comments are not allowed.
Is there a way to set the column headers in code behind? We won't know what they will be ahead of time.
I've tried this but it still displays the data source's name.
I've tried this but it still displays the data source's name.
Dim
HeaderValue As New System.Windows.Controls.TextBlock
Select Case ProductLevel.SelectedIndex
Case 0
HeaderValue.Text = Labels.SuperCategoryName
End Select
SalesGridView.Columns(1).Header = HeaderValue
SalesGridView.ItemsSource = SalesData