2014年2月15日 星期六

code test

    public static DataTable getDistinctTable(DataTable dtSource, string strDistinctColumnName)
    {
        DataTable dt = new DataTable();
        try
        {
            dt = dtSource.DefaultView.ToTable(true, new string[] { strDistinctColumnName });
            return dt;
        }
        catch (Exception)
        {

            return dt;
        }
    }

沒有留言:

張貼留言