ExcelDAL exc = new ExcelDAL();
DataTable dt = exc.ExcelToDS(path);
foreach (DataRow dr in dt.Rows)
{
modelM mm = new modelM();
mm.FileNamee = dr[0].ToString();
mm.FileType = dr[1].ToString();
mm.FileNum = dr[2].ToString();
mm.FileTime = dr[3].ToString();
}
原文:http://www.cnblogs.com/NETSBW/p/7875276.html