Method WithSortMemberPath
WithSortMemberPath<T>(GridViewBoundColumnBase, Expression<Func<T, object>>)
Sets the sort member path of the column based on the specified filter member path expression.
public static GridViewBoundColumnBase WithSortMemberPath<T>(this GridViewBoundColumnBase column, Expression<Func<T, object>> filterMemberPathExpression)
Parameters
column
GridViewBoundColumnBaseThe column.
filterMemberPathExpression
Expression<Func<T, object>>The filter member path expression.
Returns
- GridViewBoundColumnBase
The column with the sort member path set.
Type Parameters
T
The type of the column.
WithSortMemberPath<T>(T, string)
Sets the sort member path of the column to the specified filter member path.
public static T WithSortMemberPath<T>(this T column, string filterMemberPath) where T : GridViewBoundColumnBase
Parameters
column
TThe column.
filterMemberPath
stringThe filter member path.
Returns
- T
The column with the sort member path set.
Type Parameters
T
The type of the column.