如何从datarow显示新列?

时间:2013-12-31 03:33:58

标签: c# asp.net

foreach (DataRow row in dt.Rows)
{
   lstData.Add(new Tablelist() 
   { 
      process = row["process"] + "", 
      Event = row["Event"] + "", 
      status = row["status"] + "" 
   });                            
}

// assign the lstData to the gridview..

//Bind data in the Gridview
GridViewShow.DataSource = lstData;
GridViewShow.DataBind();

目前它显示的数据有3列:进程,事件,状态...在我的状态列中有声明的传递和失败..如何我可以形成另一个表来显示我的传递和失败的2列... 。请指导......我卡住了

0 个答案:

没有答案