I use RadControls for WinForms Q1 2009 SP1.
The problem is that the aggregates are only updated when new items are added to my bindinglist, not when a property is just updated. I have tried different events, but no luck.
RadGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
RadGridView1.DataSource = myBindingList; // a BindingList<T> where T have INotifyPropertyChanged implemented
GridViewSummaryRowItem summaryRow = new GridViewSummaryRowItem();
summaryRow.Add(new GridViewSummaryItem("Fiskeslag", "SUM:", GridAggregateFunction.None));
summaryRow.Add(new GridViewSummaryItem("AntReg", "{0}", GridAggregateFunction.Sum));
summaryRow.Add(new GridViewSummaryItem("NettoVekt", "{0}", GridAggregateFunction.Sum));
summaryRow.Add(new GridViewSummaryItem("AntSlipp", "{0}", GridAggregateFunction.Sum));
RadGridView1.MasterGridViewTemplate.SummaryRowsBottom.Add(summaryRow);
When I change a property on my class (T) and call OnPropertyChanged the GridView is updated with the correct values, but the summaryrow is not. It is only updated when I do myBindingList.Add(T)
The problem is that the aggregates are only updated when new items are added to my bindinglist, not when a property is just updated. I have tried different events, but no luck.
RadGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
RadGridView1.DataSource = myBindingList; // a BindingList<T> where T have INotifyPropertyChanged implemented
GridViewSummaryRowItem summaryRow = new GridViewSummaryRowItem();
summaryRow.Add(new GridViewSummaryItem("Fiskeslag", "SUM:", GridAggregateFunction.None));
summaryRow.Add(new GridViewSummaryItem("AntReg", "{0}", GridAggregateFunction.Sum));
summaryRow.Add(new GridViewSummaryItem("NettoVekt", "{0}", GridAggregateFunction.Sum));
summaryRow.Add(new GridViewSummaryItem("AntSlipp", "{0}", GridAggregateFunction.Sum));
RadGridView1.MasterGridViewTemplate.SummaryRowsBottom.Add(summaryRow);
When I change a property on my class (T) and call OnPropertyChanged the GridView is updated with the correct values, but the summaryrow is not. It is only updated when I do myBindingList.Add(T)