public static DataTable SelectRows(this DataTable dt, string whereExpression, string orderByExpression)
{
dt.DefaultView.RowFilter = whereExpression;
dt.DefaultView.Sort = orderByExpression;
return dt.DefaultView.ToTable();
}
{
dt.DefaultView.RowFilter = whereExpression;
dt.DefaultView.Sort = orderByExpression;
return dt.DefaultView.ToTable();
}
No comments:
Post a Comment