Skip to content

Commit 1e76777

Browse files
Committed the changes
1 parent 135b27e commit 1e76777

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

winui/DataGrid/Printing.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ SfDataGrid provides various options to customize print preview settings using [S
3636
{% tabs %}
3737
{% highlight c# %}
3838
sfDataGrid.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+
188191
sfDataGrid.PrintSettings.FooterHeight = 30;
189192
sfDataGrid.PrintSettings.FooterTemplate = grid.Resources["PageFooterTemplate"] as DataTemplate;
190193
sfDataGrid.Print(window);
194+
191195
{% endhighlight %}
192196
{% endtabs %}
193197

0 commit comments

Comments
 (0)