DataTable数据排序和过滤

 

 

DataRow[] rows = dsCourse.Tables[0].Select(" pxbid=" + pxb.ID);



 foreach (DataRow row in rows.Cast<DataRow>().OrderBy(r => int.Parse(r["complete"].ToString())))

 

posted @ 2018-06-06 11:07  波霸38  阅读(285)  评论(0编辑  收藏  举报