This question is locked. New answers and comments are not allowed.
I am using your data table construct to populate a grid with dynamic structured data.
Data structure snaffled from:
http://blogs.telerik.com/vladimirenchev/posts/09-04-23/lightweight_datatable_for_your_silverlight_applications.aspx
I now need to wrap the text in the column header. I have the following in the code behind to remove the xml space.
I have no preference as to using a xaml template or code behind. I just can't work out the template structure or get at the text wrapping from the code. This is the xaml.
Data structure snaffled from:
http://blogs.telerik.com/vladimirenchev/posts/09-04-23/lightweight_datatable_for_your_silverlight_applications.aspx
I now need to wrap the text in the column header. I have the following in the code behind to remove the xml space.
private
void
GridLoaded(Code.AppMessages.ListCompleteMessage.enMessage eMessage)
{
if
(eMessage == Code.AppMessages.ListCompleteMessage.enMessage.GenericTable)
{
foreach
(GridViewColumn oCol
in
RGV1.Columns)
{
oCol.Header = oCol.Header.ToString().Replace(
"_x0020_"
,
" "
);
oCol.MaxWidth = 200;
oCol.TextWrapping = TextWrapping.Wrap;
}
}
}
I have no preference as to using a xaml template or code behind. I just can't work out the template structure or get at the text wrapping from the code. This is the xaml.
<
telerik:RadGridView
x:Name
=
"RGV1"
RowIndicatorVisibility
=
"Collapsed"
IsReadOnly
=
"True"
CanUserFreezeColumns
=
"False"
ShowColumnFooters
=
"True"
ShowGroupFooters
=
"True"
CanUserResizeColumns
=
"False"
ItemsSource
=
"{Binding ReportTable,Mode=OneWay}"
/>