I copied the code directly from the demo into my project for printing a grid. It prints, and shows the headers and correct number of rows but does not show any cell text. What could be wrong??? I was using the Windows7Theme but commented that out and had the same issue. This is WPF 4.0, WPF Controls 2010.3.1314.40. I know this is a few versions behind but the last time I checked the 2011 release it had a bug with the TabControl and Prism interaction that I do not have time to work around.
EDIT: I have upgraded my project to the latest WPF Controlss (2011 Q2) and now it works for all columns EXCEPT hyperlinks (or maybe its just related to columns with cell templates). How can I get hyperlink/celltemplate columns to display?
EDIT: I have upgraded my project to the latest WPF Controlss (2011 Q2) and now it works for all columns EXCEPT hyperlinks (or maybe its just related to columns with cell templates). How can I get hyperlink/celltemplate columns to display?
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Account Number"
DataMemberBinding
=
"{Binding AccountNumber}"
ShowDistinctFilters
=
"False"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
TextBlock
><
Hyperlink
Command
=
"{Binding DataContext.SelectCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"
CommandParameter
=
"{Binding}"
><
InlineUIContainer
>
<
TextBlock
Text
=
"{Binding AccountNumber}"
/>
</
InlineUIContainer
></
Hyperlink
></
TextBlock
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
<
telerik:GridViewDataColumn.AggregateFunctions
>
<
telerik:CountFunction
Caption
=
"Count:"
/>
</
telerik:GridViewDataColumn.AggregateFunctions
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"Account Name"
DataMemberBinding
=
"{Binding AccountName}"
Width
=
"*"
ShowDistinctFilters
=
"False"
FooterCellStyle
=
"{StaticResource GridNoLinesFooterStyle}"
/>
<
telerik:GridViewDataColumn
Header
=
"Association"
DataMemberBinding
=
"{Binding AssociationName}"
FooterCellStyle
=
"{StaticResource GridNoLinesFooterStyle}"
/>
<
telerik:GridViewDataColumn
Header
=
"Status"
DataMemberBinding
=
"{Binding AccountStatusName}"
FooterCellStyle
=
"{StaticResource GridNoLinesFooterStyle}"
/>
</
telerik:RadGridView.Columns
>