如何使用C#获取字符串中的数据表行的所有值 [英] How To Get All Values of rows of data table in a string using C#

查看:158
本文介绍了如何使用C#获取字符串中的数据表行的所有值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我是C#.Net的新手.我将表中的所有值都放入数据表中,并且我想将所有行值显示为文本.
请帮助我将所有行的值显示为文本或字符串.

感谢

Hello Friends ,

i m new on C# .Net . i got all the values from table into data table and i want to show all the rows value as text.
please help me to show all rows value as text or string.

thank

推荐答案

不确定您坚持使用什么.

只需逐行遍历表即可.获取每列的所有值,并将其连接起来.说什么呢?

试试吧!
Not ure what you are stuck up with.

Just loop through the table row-wise. Get all the values for each column, concatenate it. What say?

Try!


这篇关于如何使用C#获取字符串中的数据表行的所有值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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