This question is locked. New answers and comments are not allowed.
Hi,
I have a two-level gridview.
This is the definition of the child gridview:
When I export this child gridview in excel I'd like to add, on the top of the file, the parent row and the headers of the parent row.
Is it possible?
Thank you very much.
I have a two-level gridview.
This is the definition of the child gridview:
<telerik:RadGridView.HierarchyChildTemplate> <DataTemplate> <Grid x:Name="LayoutRoot2"> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition Height="33" /> </Grid.RowDefinitions> <telerik:RadGridView Name="gridContatti" AutoGenerateColumns="False" IsReadOnly="True" Loaded="gridContatti_Loaded" Margin="8,8,8,4" telerik:StyleManager.Theme="Summer" Grid.Row="0" EnableColumnVirtualization="False" EnableRowVirtualization="False" ClipboardCopyMode="Cells" ClipboardPasteMode="Cells" SelectionMode="Extended" SelectionUnit="Mixed" ElementExporting="gridContatti_ElementExporting"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding IdContatto}" Header="Id Cont" Width="75"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Telefono}" Header="Telefono" Width="115"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Fax}" Header="Fax" Width="115"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Mail}" Header="Email" Width="250"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Note}" Header="Note" Width="250"/> </telerik:RadGridView.Columns> </telerik:RadGridView> <StackPanel HorizontalAlignment="Right" Name="stackPanExportDet" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="1" Margin="8,0,8,8"> <Button x:Name="btnExportDet" Content=" Esporta in Excel " Height="25" Click="btnExportDet_Click"/> </StackPanel> </Grid> </DataTemplate> </telerik:RadGridView.HierarchyChildTemplate>When I export this child gridview in excel I'd like to add, on the top of the file, the parent row and the headers of the parent row.
Is it possible?
Thank you very much.