Method AddColumn
AddColumn(RadGridView, string, string, string, string, string)
Adds a new column to the RadGridView control.
public static GridViewDataColumn AddColumn(this RadGridView list, string name, string bindingName, string caption, string sortMemberPath, string filterMemberPath)
Parameters
listRadGridViewThe RadGridView control.
namestringThe name of the column.
bindingNamestringThe binding name of the column.
captionstringThe caption of the column.
sortMemberPathstringThe sort member path of the column.
filterMemberPathstringThe filter member path of the column.
Returns
- GridViewDataColumn
 The added column.
AddColumn(RadGridView, string, string, string, string, string, int)
Adds a new column to the RadGridView control.
public static GridViewDataColumn AddColumn(this RadGridView list, string name, string bindingName, string caption, string sortMemberPath, string filterMemberPath, int index)
Parameters
listRadGridViewThe RadGridView control.
namestringThe name of the column.
bindingNamestringThe binding name of the column.
captionstringThe caption of the column.
sortMemberPathstringThe sort member path of the column.
filterMemberPathstringThe filter member path of the column.
indexintThe index at which the column should be inserted.
Returns
- GridViewDataColumn
 The added column.
AddColumn<T, TResult>(RadGridView, Expression<Func<T, object>>, Expression<Func<T, object>>, Expression<Func<TResult, object>>)
public static GridViewDataColumn AddColumn<T, TResult>(this RadGridView list, Expression<Func<T, object>> nameExpression, Expression<Func<T, object>> sortAndFilterExpression, Expression<Func<TResult, object>> bindingExpression = null)
Parameters
listRadGridViewnameExpressionExpression<Func<T, object>>sortAndFilterExpressionExpression<Func<T, object>>bindingExpressionExpression<Func<TResult, object>>
Returns
- GridViewDataColumn
 
Type Parameters
TTResult
AddColumn<T, TResult>(RadGridView, Expression<Func<T, object>>, string, Expression<Func<TResult, object>>)
public static GridViewDataColumn AddColumn<T, TResult>(this RadGridView list, Expression<Func<T, object>> nameExpression, string sortAndFilterMemberPath, Expression<Func<TResult, object>> bindingExpression = null)
Parameters
listRadGridViewnameExpressionExpression<Func<T, object>>sortAndFilterMemberPathstringbindingExpressionExpression<Func<TResult, object>>
Returns
- GridViewDataColumn
 
Type Parameters
TTResult
AddColumn<T, TResult>(RadGridView, Expression<Func<T, object>>, string, string, Expression<Func<TResult, object>>)
public static GridViewDataColumn AddColumn<T, TResult>(this RadGridView list, Expression<Func<T, object>> nameExpression, string sortMemberPath, string filterMemberPath, Expression<Func<TResult, object>> bindingExpression = null)
Parameters
listRadGridViewnameExpressionExpression<Func<T, object>>sortMemberPathstringfilterMemberPathstringbindingExpressionExpression<Func<TResult, object>>
Returns
- GridViewDataColumn
 
Type Parameters
TTResult
AddColumn<T, TResult>(RadGridView, Expression<Func<T, object>>, Expression<Func<TResult, object>>)
public static GridViewDataColumn AddColumn<T, TResult>(this RadGridView list, Expression<Func<T, object>> nameExpression, Expression<Func<TResult, object>> bindingExpression = null)
Parameters
listRadGridViewnameExpressionExpression<Func<T, object>>bindingExpressionExpression<Func<TResult, object>>
Returns
- GridViewDataColumn
 
Type Parameters
TTResult
AddColumn<T>(RadGridView, Expression<Func<T, object>>, string, string, Type, Expression<Func<T, object>>)
public static GridViewDataColumn AddColumn<T>(this RadGridView list, Expression<Func<T, object>> nameExpression, string sortMemberPath, string filterMemberPath, Type filterMemberType, Expression<Func<T, object>> bindingExpression = null)
Parameters
listRadGridViewnameExpressionExpression<Func<T, object>>sortMemberPathstringfilterMemberPathstringfilterMemberTypeTypebindingExpressionExpression<Func<T, object>>
Returns
- GridViewDataColumn
 
Type Parameters
T
AddColumn<T>(RadGridView, Expression<Func<T, object>>, Expression<Func<T, object>>)
public static GridViewDataColumn AddColumn<T>(this RadGridView list, Expression<Func<T, object>> nameExpression, Expression<Func<T, object>> bindingExpression = null)
Parameters
listRadGridViewnameExpressionExpression<Func<T, object>>bindingExpressionExpression<Func<T, object>>
Returns
- GridViewDataColumn
 
Type Parameters
T