DataTable dt = ds.Table[0];
if (dt != null && dt.Rows.Count > 0)
{
foreach (DataRow dr in dt.Rows)
{
dr["列名"]="你的值";
}
if (dt != null && dt.Rows.Count > 0)
{
foreach (DataRow dr in dt.Rows)
{
dr["列名"]="你的值";
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23109131/viewspace-680954/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23109131/viewspace-680954/