How do I display a vertical border around the WPF DataGrid's (SfDataGrid) column-by-column summary rows?
The vertical borders is not shows for each cell in summary rows when ShowSummartInRow is disabled in UWP DataGrid (SfDataGrid).
The summary rows will be displayed as shown in the following screenshot.
To show the vertical borders for each cell in summary row, write style for BorderThickness of GridTableSummaryCell for GridTableSummaryRow, GridCaptionSummaryCell for CaptionSummaryRow, and GridGroupSummaryCell for GroupSummaryRow.
Refer to the following code for writing style for summary cells to show the vertical border.
<Style TargetType="syncfusion:GridTableSummaryCell"> <Setter Property="BorderThickness" Value="0,0,1,0"/> </Style> <Style TargetType="syncfusion:GridCaptionSummaryCell"> <Setter Property="BorderThickness" Value="0,0,1,1"/> </Style> <Style TargetType="syncfusion:GridGroupSummaryCell"> <Setter Property="BorderThickness" Value="0,0,1,1"/> </Style>
When the vertical border is applied, the summary rows will be appeared as shown in the following screenshot.
View WPF DataGrid Summary Demo in GitHub
Conclusion
I hope you enjoyed learning about how to show border to column wise summaries.
You can refer to our UWP DataGrid feature tour page to know about its other groundbreaking feature representations. You can also explore our UWP DataGrid documentation to understand how to present and manipulate data.
For current customers, you can check out our UWP components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our UWP Grid and other UWP components.
If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!