摘要: 原数据结构:转换后数据结构:当然可以移除不必要的列:如:FNetCostAmount ,移除方法很简单,//参数肯定是数据源啦。DataTable dt = RowToCol(newDt);dt.Columns.Remove("FNetCostAmount");private DataTable RowToCol(DataTable dataSource) { //读取所需列内所有行数据 DataTable newDataTable = dataSource; //维度:1、列标题名 2、⒈行坐标 ⒉行内值 Dictionary> myDictionary = new 阅读全文
posted @ 2013-07-17 17:31 灬阿毛 阅读(980) 评论(0) 推荐(0) 编辑
摘要: DateTime time = DateTime.Now;time.ToString("格式化字符串格式",DateTimeFormatInfo.InvariantInfo)/字符串格式**d:08/17/2000*D:Thursday,August17,2000*f:Thursday,August17,200016:32*F:Thursday,August17,200016:32:32*g:08/17/200016:32*G:08/17/200016:32:32*m:August17*r:Thu,17Aug200023:32:32GMT*s:2000-08-17T16:3 阅读全文
posted @ 2013-07-17 17:09 灬阿毛 阅读(1755) 评论(0) 推荐(0) 编辑