if (gridBoundColumn.Aggregate == GridAggregateFunction.None)

                        {
                            gridBoundColumn.Aggregate = GridAggregateFunction.Sum;
                        } small edin in PurchaseOrderDetails