This question is locked. New answers and comments are not allowed.
Hello Telerik team,
I set the "HeaderText" of a GridViewDataColumn to a custom text (other than the binding property):
"gridViewResults" is a RadGridView instance and is configured as follows in the xaml-file:
For example if I group the column with HeaderText "Name" the group-box shows "Property1" instead of the HeaderText "Name". The group-box takes the property name instead of the HeaderText. The HeaderText looks fine.
Is this a bug or am I missing something to tell the group-box to take the HeaderText instead of the bound property name?
Thank you.
Greetings,
Stefan
I set the "HeaderText" of a GridViewDataColumn to a custom text (other than the binding property):
| /// |
| /// Initialize the RadGridView... |
| /// |
| GridViewDataColumn gridCol = new GridViewDataColumn(); |
| gridCol.IsVisible = true; |
| gridCol.HeaderText = "Name"; |
| gridCol.DataMemberBinding = new Binding("Property1"); |
| gridCol.IsGroupable = true; |
| gridCol.IsSortable = true; |
| this.gridViewResults.Columns.Add(gridCol); |
"gridViewResults" is a RadGridView instance and is configured as follows in the xaml-file:
| <telerikGrid:RadGridView x:Name="gridViewResults" |
| MinHeight="240" |
| MaxHeight="240" |
| AutoGenerateColumns="False" |
| ScrollMode="RealTime" |
| HorizontalAlignment="Stretch" |
| IsReadOnly="True" |
| Margin="3,3,3,0" |
| BorderBrush="LightBlue" |
| BorderThickness="1" |
| ShowGroupPanel="True" |
| ShowColumnHeaders="True" |
| ColumnsWidthMode="Auto" |
| ></telerikGrid:RadGridView> |
For example if I group the column with HeaderText "Name" the group-box shows "Property1" instead of the HeaderText "Name". The group-box takes the property name instead of the HeaderText. The HeaderText looks fine.
Is this a bug or am I missing something to tell the group-box to take the HeaderText instead of the bound property name?
Thank you.
Greetings,
Stefan