如何获取DATATABLE中的某一列某一行的值` string strvalue = datatable1.rows[i]["fieldname"].tostring() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 DataTable t;用下面的方法。 string s = (string)t.Rows[0][0]; DataRow theRow1 = thisds.Tables["table_1"].Rows[2];值= (Decimal)theRow1["列名"]; 更正一下DataRow theRow1 = thisds.Tables["table_1"].Rows[2];值= theRow1["列名"].ToString(); string strvalue = datatable1.rows[i][fieldname].tostring()就行了string strvalue = datatable1.rows[i][fieldindex].tostring()是一样的fieldname是要查找的字段的名称fieldindex是字段的序列号(从0开始) C#控件闪烁 什么是表单提交,怎么实行?????? 在C#中怎么调用twain32.dll c# 设计一般用何工具,rose 或 visio 支持c#设计吗? 能不能写出这样一个class? 关于将环境文件(.net framework,mdac)一同打进安装文件中的方法(迫切求教) SendMessage 获取静态文本内容 哪位大侠知道怎样在pop3中解码quoted-printable? 程序中异常详细信息如何处理,在线等待 我在dos窗口中csc helloworld.cs 但是提示没有csc命令。 如果在应用程序中打开一个HTTP连接 浮动窗体怎样设置?
用下面的方法。
string s = (string)t.Rows[0][0];
DataRow theRow1 = thisds.Tables["table_1"].Rows[2];值= theRow1["列名"].ToString();
string strvalue = datatable1.rows[i][fieldindex].tostring()是一样的
fieldname是要查找的字段的名称
fieldindex是字段的序列号(从0开始)