BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Anas,
Thank you for contacting Syncfusion support.
We analyzed your query and you can achieve your requirement “Customize the TableSummaryRowStyle based on the TableSummary row index” by getting the row index from the SpannedDataRow in StyleSeletor.
Please refer the code example and sample in the following location:
Code Snippet (XAML):
<syncfusion:SfDataGrid x:Name="sfdatagrid" AllowEditing="True" AutoGenerateColumns="False" TableSummaryRowStyleSelector="{StaticResource tableSummaryStyleSelector}" |
Code Snippet(C# - StyleSelector):
class TableSummaryStyleSelector : StyleSelector { public override Style SelectStyle(object item, DependencyObject container) { var data = item as SpannedDataRow; var index = data.RowIndex; if (index == 1) return App.Current.Resources["TableSummaryStyle1"] as Style; return App.Current.Resources["TableSummaryStyle2"] as Style; } |
Sample Location: TableSummaryRowStyle
If your requirement is differ from this could you please share the exact requirement that will help us to provide the solution in better way.
Regards,
Farjana Parveen A