且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用逗号分隔在Asp.net中的Gridview中显示数据库值。

更新时间:2023-01-31 16:28:26

在sql中连接之前尝试修剪单个字段值,例如:

try trimming the individual field values before concatenating them in sql, example:
SELECT RTRIM(LTRIM(fieldname)) FROM table1



但是,我建议将它们留在gridview中自己的列中。


However, I would suggest leaving them in their own columns in the gridview.