Bonjour;
Cela fait plusieurs jours que je cherche à créer le total d'un sous tableau...
Je m'explique, j'affiche mes commandes dans un tableau avec les infos comme N°, Fournisseur, Date etc.
Lorsque je clique sur la flèche à côté je me retrouve avec les détails de la commande : Libelle, Prix unitaire, Quantité et Total de cette ligne.
Je voudrais donc afficher le total du total de ces lignes via un sum...

Le problème est qu'avec infragistic et mon XamGrid je ne m'en sors pas.

Voici ce que j'ai déjà réalisé :

Code xaml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
        <ig:XamGrid AutoGenerateColumns="False" 
                    ColumnWidth="auto"
                    FontSize="10" 
                    FontFamily="Calibri"   
                    Foreground="Black"
                    Grid.Column="0"
                    Grid.Row="1" 
                    Margin="5"
                    RowHover="Row"
                    RowHeight="20"
                    ItemsSource="{Binding ListeCommandeFournisseur}">
 
            <ig:XamGrid.SortingSettings>
                <ig:SortingSettings  AllowSorting="True" />
            </ig:XamGrid.SortingSettings>
 
            <ig:XamGrid.GroupBySettings>
                <ig:GroupBySettings AllowGroupByArea="Top" />
            </ig:XamGrid.GroupBySettings>
 
            <ig:XamGrid.Columns>
                <ig:TextColumn Key="CommandeFournisseur.NumeroCommande" HeaderText="N °" MinimumWidth="70"/>
                <ig:TextColumn Key="CommandeFournisseur.DateCommande" HeaderText="DateCommande" FormatString="{}{0:dd/MM/yyyy}" />
                <ig:TextColumn Key="CommandeFournisseur.Fournisseur.Nom" HeaderText="Fournisseur" MinimumWidth="150"/>
                <ig:TextColumn Key="CommandeFournisseur.Personne.Nom" HeaderText="Demandeur" MinimumWidth="150"/>
                <ig:TextColumn Key="CommandeFournisseur.Montant_HT" HeaderText="Montant HT"  FormatString="{}{0:c2}" HorizontalContentAlignment="Right" MinimumWidth="70"/>
                <ig:TextColumn Key="CommandeFournisseur.BonLivraisonRecu" HeaderText="BL" ValueConverter="{StaticResource EnumStringConverterKey}" ValueConverterParameter="CommandeFournisseur.BonLivraisonRecu" MinimumWidth="70"/>
                <ig:TextColumn Key="CommandeFournisseur.FactureRecu" HeaderText="Facture" ValueConverter="{StaticResource EnumStringConverterKey}" ValueConverterParameter="CommandeFournisseur.FactureRecu" MinimumWidth="70"/>
                <ig:TextColumn Key="CommandeFournisseur.Etat"  HeaderText="Etat" ValueConverter="{StaticResource EnumStringConverterKey}" ValueConverterParameter="CommandeFournisseur.Etat" MinimumWidth="70" />
 
                <ig:ColumnLayout Key="CommandeFournisseur.CommandeFournisseurLignes">
                    <ig:ColumnLayout.Columns>
                        <ig:TextColumn Key="Affaire.Libelle" />
                        <ig:TextColumn Key="Description" />
                        <ig:TextColumn Key="PrixUnitaire" IsSummable="True" />
                        <ig:TextColumn Key="Quantite"/>
                        <ig:TextColumn Key="Total_HT"/>
                            <!--
                            <ig:TextColumn.SummaryColumnSettings>
                                <ig:SummaryColumnSettings>
                                    <ig:SummaryColumnSettings.SummaryOperands>
                                        <ig:SumSummaryOperand RowDisplayLabel="Total HT">
                                        </ig:SumSummaryOperand>
                                    </ig:SummaryColumnSettings.SummaryOperands>
                                </ig:SummaryColumnSettings>
                            </ig:TextColumn.SummaryColumnSettings>
                        </ig:TextColumn>-->
 
                    </ig:ColumnLayout.Columns>
                </ig:ColumnLayout>
            </ig:XamGrid.Columns>
        </ig:XamGrid>

Ps : ma variable totale de la commande globale est de toute façon atteignable mais je voudrai la glisser dans le sous-tableau....