我想总结TotalPrice一下 Grid列的值。
它适用于 Footer.Template:
.Columns(col => col.Bound(o => o.TotalPrice)
                   .FooterTemplate(@<text>Sum: @item.Sum</text>))
.DataSource(dataSource => dataSource
     .Server()
     ... )

但我想要:
但是我想在数据行的上方将这一行与 Sum 等作为第一行!有谁知道这是如何工作的,无论是使用内置功能还是稳定的解决方法。
尝试和错误:
使用 HeaderTemplate:
.Columns(col => col.Bound(o => o.TotalPrice)
                   .HeaderTemplate(@<text>Sum: @item.Sum</text>))
我得到以下信息:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1593: Delegate 'System.Action' does not take 1 arguments
Source Error:    
Line 54:           columns.Bound(o => o.TotalPrice).HeaderTemplate(@<text>Sum: @item.Sum</text>);