How to Show Vertical Border to Summary Cell Rows in WPF DataGrid (SfDataGrid)?
The vertical borders are not shown for each cell in summary rows when ShowSummaryInRow is disabled in WPF 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 GroupSummaryRows.
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>
Conclusion
I hope you enjoyed learning about how to show vertical border to summary cell rows in WPF DataGrid.
You can refer to our WPF DataGrid feature tour page to know about its other groundbreaking feature representations. You can also explore our WPF DataGrid documentation to understand how to create and manipulate data.
For current customers, you can check out our 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 other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!