2011年7月26日

为dataset手动添加自定义列

摘要: 涉及到多表查询,而且其中两列中的数据是由数据库表中的几列经过计算所得出来的,而非数据库中原有的列。 public DataSet GetListNotPayment(string strWhere) { ds = dal.GetListNotPayment(strWhere);//查询出的dataset ds.Tables[0].Columns.Add("yifufangkuan", System.Type.GetType("System.String"));//直接为表创建一新列 ds.Tables[0].Col... 阅读全文

posted @ 2011-07-26 14:57 学中医的程序员 阅读(183) 评论(0) 推荐(0) 编辑

导航