简体   繁体   English

具有非简单返回值的 DataTextField 中的问题

[英]problem in DataTextField with non simple return value

I know that the syntax for using DataTextField is:我知道使用 DataTextField 的语法是:

VA.DataTextField = "nameofcolum" 

but if my request is not simple that means my request returns the result in a column which not exist in this case.但是如果我的请求不简单,这意味着我的请求会在本例中不存在的列中返回结果。 What I should to affect to DataTextField?我应该对 DataTextField 产生什么影响?

It's hard to tell what you're looking for here without more information.如果没有更多信息,很难说出您在这里寻找什么。

If your result set does not contain the column you need, change your result set - alter your query.如果您的结果集不包含您需要的列,请更改您的结果集- 更改您的查询。 If you need your datatextfield as a combination of columns, you can iterate through the result set and build the text string based on the column values and assign it as the display value.如果您需要将 datatextfield 作为列的组合,您可以遍历结果集并基于列值构建文本字符串并将其分配为显示值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM