Skip to main content

GridViewModel.ProcessCustomBinding(GridViewCustomBindingGetDataRowCountHandler, GridViewCustomBindingGetDataHandler, GridViewCustomBindingGetSummaryValuesHandler, GridViewCustomBindingGetGroupingInfoHandler, GridViewCustomBindingGetUniqueHeaderFilterValuesHandler) Method

Delegates the implementation of grid view model population in the custom data binding mode to Model-layer functions specified via the method’s parameters.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void ProcessCustomBinding(
    GridViewCustomBindingGetDataRowCountHandler getDataRowCountMethod,
    GridViewCustomBindingGetDataHandler getDataMethod,
    GridViewCustomBindingGetSummaryValuesHandler getSummaryValuesMethod,
    GridViewCustomBindingGetGroupingInfoHandler getGroupingInfoMethod,
    GridViewCustomBindingGetUniqueHeaderFilterValuesHandler getUniqueHeaderFilterValuesMethod
)

Parameters

Name Type Description
getDataRowCountMethod GridViewCustomBindingGetDataRowCountHandler

A delegate method that allows you to implement custom processing to return the total number of data rows.

getDataMethod GridViewCustomBindingGetDataHandler

A delegate method that allows you to implement custom processing to return the data rows requested by the grid.

getSummaryValuesMethod GridViewCustomBindingGetSummaryValuesHandler

A delegate method that allows you to implement custom processing to calculate and return values of summaries required within the grid.

getGroupingInfoMethod GridViewCustomBindingGetGroupingInfoHandler

A delegate method that allows you to implement custom processing to return grouping information for group rows (the group value - key, and the number of data rows within the group - count).

getUniqueHeaderFilterValuesMethod GridViewCustomBindingGetUniqueHeaderFilterValuesHandler

A delegate method that allows you to implement custom processing to return unique values to be displayed in the header filter dropdown list invoked for a grid column.

Remarks

To learn more, refer to the following topics:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ProcessCustomBinding(GridViewCustomBindingGetDataRowCountHandler, GridViewCustomBindingGetDataHandler, GridViewCustomBindingGetSummaryValuesHandler, GridViewCustomBindingGetGroupingInfoHandler, GridViewCustomBindingGetUniqueHeaderFilterValuesHandler) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also