DataColumn.Ex pression电源 [英] DataColumn.Expression Power

查看:115
本文介绍了DataColumn.Ex pression电源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下code

Dim dc = New DataColumn(name, GetType(Double), "[col1] ^ [col2]")

产生以下错误:

produces the following error:

The expression contains unsupported operator '^'.

这是正确的,是电力操作数的DataColumn EX pressions不支持???

Is this right, is the power operand not support in datacolumn expressions???

任何人有一个想法如何,我会写吗?

Anyone have an idea how i'd write this?

推荐答案

是的。它不支持

您可以使用 RowChanging DataTable的事件来设置使用C#的新列的值。

You could use RowChanging event of DataTable to set the value of the new column using c#.

这篇关于DataColumn.Ex pression电源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆