星期三, 4月 28, 2010

[Asp.Net] 一行搞定DataTable Distinct

今天剛好用到,沒有用新的linq來做。
DataTable dt = ((DataTable)tCourse).DefaultView.ToTable(true,
                new string[] {
                    "CourseID",
                    "CourseName",
                    "CourseClass",
                    "CourseStart",
                    "CourseEnd",
                    "CourseStatus" }); 

1 則留言:

留個話吧:)