Skip to main content
JS

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CollectionFactoryExpressionExtensions.AddFor Method

Name Parameters Description
AddFor<TRow, TProperty>(CollectionFactory<DataGridColumnBuilder<TRow>>, Expression<Func<TRow, TProperty>>) static factory, expression Adds columns to a strongly-typed DataGrid.
AddFor<TRow, TProperty>(CollectionFactory<DataGridSummaryGroupItemBuilder<TRow>>, Expression<Func<TRow, TProperty>>) static factory, expression Adds group summary items to a strongly-typed DataGrid.
AddFor<TRow, TProperty>(CollectionFactory<DataGridSummaryTotalItemBuilder<TRow>>, Expression<Func<TRow, TProperty>>) static factory, expression Adds total summary items to a strongly-typed DataGrid.
AddFor<TField, TProperty>(CollectionFactory<FilterBuilderFieldBuilder<TField>>, Expression<Func<TField, TProperty>>) static factory, expression Adds fields to a strongly-typed FilterBuilder.
AddFor<TRow, TProperty>(CollectionFactory<GanttColumnBuilder<TRow>>, Expression<Func<TRow, TProperty>>) static factory, expression
AddFor<TField, TProperty>(CollectionFactory<PivotGridDataSourceFieldBuilder<TField>>, Expression<Func<TField, TProperty>>) static factory, expression Adds fields to a strongly-typed PivotGrid.
AddFor<TRow, TProperty>(CollectionFactory<TreeListColumnBuilder<TRow>>, Expression<Func<TRow, TProperty>>) static factory, expression Adds columns to a strongly-typed TreeList.
AddFor<TRow, TColumn, TDisplayColumn>(CollectionFactory<DataGridSummaryGroupItemBuilder<TRow>>, Expression<Func<TRow, TColumn>>, Expression<Func<TRow, TDisplayColumn>>) static factory, column, displayColumn Adds a group summary item to a specific column of a strongly-typed DataGrid.
AddFor<TRow, TColumn, TDisplayColumn>(CollectionFactory<DataGridSummaryTotalItemBuilder<TRow>>, Expression<Func<TRow, TColumn>>, Expression<Func<TRow, TDisplayColumn>>) static factory, column, displayColumn Adds a total summary item to a specific column of a strongly-typed DataGrid.