File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ SfDataGrid provides various options to customize print preview settings using [S
3636{% tabs %}
3737{% highlight c# %}
3838sfDataGrid.PrintSettings.CanRepeatHeaders = true;
39- sfDataGrid.Print();
39+ sfDataGrid.Print(window );
4040{% endhighlight %}
4141{% endtabs %}
4242
@@ -174,6 +174,7 @@ You can print current Date and Time at each page by setting the [FooterHeight](
174174
175175{% tabs %}
176176{% highlight xaml %}
177+
177178<Grid.Resources>
178179 <local: OrderInfoViewModel x: Key ="viewModel"/>
179180 <DataTemplate x:Key =" PageFooterTemplate " >
@@ -183,11 +184,14 @@ You can print current Date and Time at each page by setting the [FooterHeight](
183184 </Grid >
184185 </DataTemplate >
185186</Grid.Resources>
187+
186188{% endhighlight %}
187189{% highlight c# %}
190+
188191sfDataGrid.PrintSettings.FooterHeight = 30;
189192sfDataGrid.PrintSettings.FooterTemplate = grid.Resources[ "PageFooterTemplate"] as DataTemplate;
190193sfDataGrid.Print(window);
194+
191195{% endhighlight %}
192196{% endtabs %}
193197
You can’t perform that action at this time.
0 commit comments