DataTable 添加排序和查询条件的方法sort select


        DataView dv = feeCountDt.DefaultView;
        dv.Sort = " FeeCount desc";
        if (txtzuozhe.Text != "")
        {
            dv.RowFilter = "Author like '%" + txtzuozhe.Text + "%'";
        }
        feeCountDt = dv.ToTable();

你可能感兴趣的:(Datatable)