找不到列[undefined] + DataView.Filter [英] Cannot find column [undefined] + DataView.Filter

查看:90
本文介绍了找不到列[undefined] + DataView.Filter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好! ,

我在DataTable上使用DataView.Filter并且有时会收到此错误。

在System.Data.NameNode.Bind(DataTable表) ,List`1 list)

在System.Data.FunctionNode.Bind(DataTable table,List`1 list)

at System.Data.BinaryNode.Bind(DataTable table) ,List`1 list)

在System.Data.DataExpression.Bind(DataTable table)

at System.Data.DataExpression..ctor(DataTable table,String expression,类型类型)

at System.Data.DataView.set_RowFilter(String value)

at WebForms_DiaBasketDiamondNew.BlockandSTOParcels(String trans_type)in c:\ eDiarough \ Websales \ WebForms \ DiabasketDiamondNew.aspx.cs:第1487行。





如果有任何人知道这个问题,请帮助我。



代码:

  //   hdnMBParcel是一个包含以下值的隐藏文件:'MD08029','TRD 1263' 
DataView dView = new DataView(dtNewRateData);
dView.RowFilter = PARCEL_ID IN( + hdnMBParcel.Value + ;
dtNewRateData = dView.ToTable();

解决方案

嗨! ,



问题解决了。我的隐藏字段值在某些浏览器中显示为未定义。

我不知道确切的客户端浏览器。我在页面提交之前检查了隐藏字段值。

如果值未定义,则向用户弹出警告消息。



谢谢&此致,

Pawan Bhise


Hi ! ,
I am using DataView.Filter on DataTable and getting this error sometimes.

at System.Data.NameNode.Bind(DataTable table, List`1 list)

   at System.Data.FunctionNode.Bind(DataTable table, List`1 list)

   at System.Data.BinaryNode.Bind(DataTable table, List`1 list)

   at System.Data.DataExpression.Bind(DataTable table)

   at System.Data.DataExpression..ctor(DataTable table, String expression, Type type)

   at System.Data.DataView.set_RowFilter(String value)

   at WebForms_DiaBasketDiamondNew.BlockandSTOParcels(String trans_type) in c:\eDiarough\Websales\WebForms\DiaBasketDiamondNew.aspx.cs:line 1487.



Please help me if any body know about this issue.

Code :

//hdnMBParcel is a hidden filed containing values like: 'MD08029','TRD1263'
 DataView dView = new DataView(dtNewRateData);
 dView.RowFilter = "PARCEL_ID IN (" + hdnMBParcel.Value + ")";
 dtNewRateData = dView.ToTable();

解决方案

Hi! ,

Issue is solved.My hidden field value was coming 'Undefined' in some browser.
I don't know the exact client browser.I checked the hidden field value before page submit.
If value is undefined then popup a alert message to user.

Thanks & Regards,
Pawan Bhise


这篇关于找不到列[undefined] + DataView.Filter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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