摘要: public void ConvertIDToNameForDataTable(DataTable dt, string srcColName, Type enumType) { dt.Columns.Add(new DataColumn(srcColName + "Name")); dt.Rows[0][srcColName + "Name"] = Enum.GetName(enumType, (int)dt.Rows[0][srcColName]); } 阅读全文
posted @ 2011-09-21 18:41 KimSky 阅读(269) 评论(0) 推荐(0) 编辑