Back to Devexpress

ASPxGridView.HtmlFooterCellPrepared Event

aspnet-devexpress-dot-web-dot-aspxgridview-1cf68b58.md

latest3.0 KB
Original Source

ASPxGridView.HtmlFooterCellPrepared Event

Enables the settings of individual footer cells to be changed.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxGridViewTableFooterCellEventHandler HtmlFooterCellPrepared
vb
Public Event HtmlFooterCellPrepared As ASPxGridViewTableFooterCellEventHandler

Event Data

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

PropertyDescription
CellGets the processed footer cell.
ColumnGets the column that owns the footer cell currently being processed.
IsTotalFooterGets whether the processed cell is dislayed within the Total Footer.
VisibleIndexGets the row’s visible index.

The event data class exposes the following methods:

MethodDescription
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).

aspx
protected void ASPxGridView1_HtmlFooterCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableFooterCellEventArgs e)
{
    GridViewDataColumn column = (GridViewDataColumn)e.Column;
    if (column.FieldName == "CategoryID") {
        // your code
    }
}
vb
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

Grid View

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace