加载到一个DataTable.
DataTable
SqlDataReader pubdr = pubcmd.ExecuteReader(); DataTable dt = new DataTable(); dt.Load(pubdr);
要扩展评论:
foreach (DataRow dr in dt.Rows) { LblEplShowEntity.Text = dr["FIELDNAME"].ToString(); //... }