高级数据网格摘要字段将 XML 数据视为字符串
我有一个高级数据网格,其中分组集合附加到 XMLListCollection。
我尝试执行 SummaryOperation,但最终总是在 SummaryRow 上得到 0(零),因为数据似乎被视为字符串,而不是数字。
有没有办法强制 SummaryField2 对象将数据视为数字而不是字符串?
谢谢。
I have an advanced datagrid, with the grouping collection attached to an XMLListCollection.
I tried to perform a SummaryOperation, but always ends up getting 0 (zero) on the SummaryRow as it seems the data is being treated as string, instead of numeric.
Is there a way to force the SummaryField2 object to treat the data as numeric rather than string?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
旧的 SummaryField 有一个summaryFunction 属性,可以满足您的需要。您或许还可以编写自己的 SummaryOperation,将 XML 考虑在内。
The older SummaryField has a summaryFunction property that does what you need. You could probably also write your own SummaryOperation that takes XML into account.