列不属于表表吗? [英] Column does not belong to table Table?

查看:177
本文介绍了列不属于表表吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我尝试解决问题,但在我的项目中使用了动态功能,但我陷入了这段code.am中.
在单击记录进行编辑时出现此错误.
这是我在getDynamicData中的代码

hi i tried to solve but i stuck in this code.am using dynamic in my project.
while clicking the record to edit am getting this error..
here is my code in getDynamicData

for (int i = 0; i < gListDynamicControls.Count; i++)
        {
            DynaControlsPL objDFPropTemp = (DynaControlsPL)gListDynamicControls[i];

            if (dsCategoryMasterData.Tables[0].Rows.Count > 0)
            {

                if (!dsCategoryMasterData.Tables[0].Rows[0].IsNull(objDFPropTemp.dfFieldName))//in this line am getting error
                    objDFPropTemp.dfFieldValue = dsCategoryMasterData.Tables[0].Rows[0][objDFPropTemp.dfFieldName];
                else
                    objDFPropTemp.dfFieldValue = null;
            }



谁能建议我,.
谢谢



can any one suggest me ,.
thanks

推荐答案

检查objDFPropTemp.dfFieldName值与dsCategoryMasterData.Tables [0]表中的列值之一相同.
check objDFPropTemp.dfFieldName value is same as the, one of the column value in dsCategoryMasterData.Tables[0] table.


这意味着列objDFPropTemp.dfFieldName不属于表.在调试器中检查此列是否确实属于该表?
可能是变量名和实际列名的错字.
This means that the column objDFPropTemp.dfFieldName is not part of the table. Check in debugger if this column really belongs to the table?
Could be a typo in the variable name and actual columne name.


这篇关于列不属于表表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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