Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Position of the summary result
posted

Hi

I migrate a project using a UltraGrid to WebHierachicalDataGrid.

I calculate the sum and put it on a summary on the left side, because the colums used for the calculation is hidden.

For the UltraGrid i use the following script

Dim   SHESummary as Infragistics.Win.UltraWinGrid.SummarySettings;

TypeMSummary= ultraGrid1.DisplayLayout.Bands[0].Summaries.Add("type_M", Infragistics.Win.UltraWinGrid.SummaryType.Sum, ultraGrid1.DisplayLayout.Bands(0).Columns("type_M"), Infragistics.Win.UltraWinGrid.SummaryPosition.Left);

TypeMSummary.DisplayFormat= "Total  = {0}";

 

Now when using WebHierachicalDataGrid, i try to do the same, but with no success.

Here is the script i use on the initialiedBand Event.

e.Band.Behaviors.CreateBehavior<SummaryRow>();

e.Band.Behaviors.SummaryRow.Enabled =true;

ColumnSummaryInfo unitAmelioration = new ColumnSummaryInfo();

 unitAmelioration.ColumnKey ="Nom_Group";

 e.Band.Behaviors.SummaryRow.ColumnSummaries.Add(unitAmelioration);

 WebHierarchicalDataGrid1.RefreshBehaviors();

 

It is possible to do the same and How?

 

Thank's

Christophe

 

 

Parents
No Data
Reply Children
No Data