美文网首页
DateSet 增加新列

DateSet 增加新列

作者: king凌云 | 来源:发表于2016-08-24 12:48 被阅读14次

//DateSet 新增一列数据

DateSet ds=new DateSet();

ds.Tables[0].Columns.Add("imgUrl", typeof(string));

for (int i = 0; i < ds.Tables[0].Rows.Count; i++)

{

 ds.Tables[0].Rows[i]["imgUrl"] =值;

}

相关文章

网友评论

      本文标题:DateSet 增加新列

      本文链接:https://www.haomeiwen.com/subject/zrxosttx.html