0

当使用带有自定义聚合的 Telerik RadGrid 时,我试图在页脚行中显示一个简单的字符串,例如“Total”。但是,RadGrid 似乎会在字符串的开头自动为我插入文本,使其显示为“自定义:总计”。我该如何关闭它?

4

1 回答 1

5

找到了。您只需像这样设置 GridBoundColumn 的 DataFormatString 属性:

<telerik:GridBoundColumn HeaderText="Capacity" UniqueName="CapacityType" DataField="CapacityType" ItemStyle-Width="210" ReadOnly="true" FooterAggregateFormatString="{0:g}" Aggregate="Custom" />
于 2009-08-07T14:09:59.023 回答