Skip to main content
Tab

ASPxGridView.HtmlFooterCellPrepared Event

Enables the settings of individual footer cells to be changed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public event ASPxGridViewTableFooterCellEventHandler HtmlFooterCellPrepared

Event Data

The HtmlFooterCellPrepared event's data class is ASPxGridViewTableFooterCellEventArgs. The following properties provide information specific to this event:

Property Description
Cell Gets the processed footer cell.
Column Gets the column that owns the footer cell currently being processed.
IsTotalFooter Gets whether the processed cell is dislayed within the Total Footer.
VisibleIndex Gets the row’s visible index.

The event data class exposes the following methods:

Method Description
GetSummaryValue(ASPxSummaryItem) Returns the specified summary item’s value.

Remarks

You can also handle the HtmlFooterCellPrepared event to initialize web controls contained within footer cell templates (GridViewTemplates.FooterCell).

protected void ASPxGridView1_HtmlFooterCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableFooterCellEventArgs e)
{
    GridViewDataColumn column = (GridViewDataColumn)e.Column;
    if (column.FieldName == "CategoryID") {
        // your code
    }
}
    Protected Sub ASPxGridView1_HtmlFooterCellPrepared(ByVal sender As Object, ByVal e As DevExpress.Web.ASPxGridView.ASPxGridViewTableFooterCellEventArgs)
        Dim column As GridViewDataColumn = CType(e.Column, GridViewDataColumn)
        If column.FieldName = "CategoryID" Then
            ...
        End If
    End Sub
See Also