Hi,
Could someone point me to an example of how you can put totals on the bottom of a data grid. These would always show. Don't want the user to select sum or what ever at the top of the grid.
Thanks,
Keith
Alex,
THE FIX for the totals not showing up on the xamDataGrid is to set the "Foregound" color to something like Black. I had let it default, what ever that is or was, but as soon as I put in a foreground color the totals started showing up. I did not mess with this foreground color, I let it default to what ever Infragistics sets it to...
ERRRRRRRRRRRRRRRRRRRRRRRRRRRRR!
Keith,
Besides, AllowSummaries=true of the FieldSettings I see nothing wrong with this code snippet. However, it sounds like you have set this for example in the xaml or elsewhere, as you can see summaries when you hover with the mouse.
The problem seems to be specific to your scenario. Please give us more information on your setup and the exact dll versions that you are using. Also, if you could provide a sample project with this issue, it could really help.
Note you get the sum if you mouse over the total area under the Head In column.
Have spend a great deal of time with the XamDataGrid samples.
The summary area shows up on the grid, but with NO totals. Tested also with C#, the following code:
private void Window_Loaded(object sender, RoutedEventArgs e) { LotsPen_XamDataGrid.DataSource = ds.SelectPenLotMaster; LotsPen_XamDataGrid.FieldSettings.SummaryDisplayArea = SummaryDisplayAreas.Bottom; FieldLayout fieldLayout = LotsPen_XamDataGrid.FieldLayouts[0]; fieldLayout.SummaryDescriptionMask = "Totals"; fieldLayout.SummaryDescriptionMaskInGroupBy = "Summaries for [GROUP_BY_VALUE]"; fieldLayout.Settings.SummaryDescriptionVisibility = Visibility.Visible; fieldLayout.SummaryDefinitions.Add(SummaryCalculator.Sum, "HeadIn"); }
Do you have anything else I can test, is there a property that needs to be set
Keith Black
I am looking at the samples now. Will let you know if I get the totals on my data grid.
Thanks