问题描述
这是我的代码
DataTable dTable = new DataTable("Dynamically_Generated");
DataColumn名称=新的DataColumn("TITLE",typeof(string));
dTable.Columns.Add(Name);
DataColumn Expert =新的DataColumn("DESCRIPTION",typeof(string));
dTable.Columns.Add(Expert);
DataColumn日期=新的DataColumn("ACTIONS",typeof(string));
dTable.Columns.Add(Date);
/*将数据插入数据表*/
DataRow dataRow = dTable.NewRow();
dataRow ["TITLE"] =蜂王浆";
dataRow ["DESCRIPTION"] ="Lorem Ipsum";
dataRow ["ACTIONS"] = ResolveUrl(〜/Images/edit.png");
dTable.Rows.Add(dataRow);
在这里,我试图在动作"列中插入2张图片,请问有人可以帮助我吗?
here is my code
DataTable dTable = new DataTable("Dynamically_Generated");
DataColumn Name = new DataColumn("TITLE", typeof(string));
dTable.Columns.Add(Name);
DataColumn Expert = new DataColumn("DESCRIPTION", typeof(string));
dTable.Columns.Add(Expert);
DataColumn Date = new DataColumn("ACTIONS", typeof(string));
dTable.Columns.Add(Date);
/*INSERTING DATA TO DATA TABLE*/
DataRow dataRow = dTable.NewRow();
dataRow["TITLE"] = "Lorem Ipsum";
dataRow["DESCRIPTION"] = "Lorem Ipsum";
dataRow["ACTIONS"] = ResolveUrl("~/Images/edit.png");
dTable.Rows.Add(dataRow);
here i was trying to insert 2 images in Actions column can any one help me plz
推荐答案
这篇关于如何在数据表行中动态添加名字和姓氏作为单个名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!