Hi,
behind the view i create summary groups when i change the picker value.
This is the code behind:
private void IdFiltri_SelectedIndexChanged(object sender, EventArgs e)
{
dataGrid.Columns.ElementAt(1).Width = 50;
if (dataGrid.GroupColumnDescriptions.Count > 0)
{
dataGrid.GroupColumnDescriptions.Clear();
}
if (dataGrid.GroupSummaryRows.Count > 0)
{
dataGrid.GroupSummaryRows.Clear();
}
if (IdFiltri.SelectedItem.ToString() == "Visualizza per tipo")
{
dataGrid.GroupColumnDescriptions.Add(new GroupColumnDescription()
{
ColumnName = "IdDocDescrizCompleta",
});
dataGrid.GroupSummaryRows.Add(new GridGroupSummaryRow()
{
ShowSummaryInRow = false,
SummaryColumns = new ObservableCollection<ISummaryColumn>()
{
new GridSummaryColumn()
{
Name="Numero",
MappingName="Num",
SummaryType=SummaryType.CountAggregate,
Format="Nr. Documenti {Count:d}"
},
new GridSummaryColumn()
{
Name="TotImponibile",
MappingName="TotaleImponibile",
Format="Tot. Imponibile {Sum}",
SummaryType=SummaryType.DoubleAggregate
},
new GridSummaryColumn()
{
Name="TotDocumento",
MappingName="TotaleDoc",
Format="Tot. Documento {Sum}",
SummaryType=SummaryType.DoubleAggregate
}
}
});
dataGrid.Columns.ElementAt(1).Width = 120;
}
//viewModel.CalcolaDocumenti();
}
in uwp this code works and i see the summaries but not in android. There aren't exceptions.
Best
Alberto C.