ASPxGridView.HtmlFooterCellPrepared Event
In This Article
Enables the settings of individual footer cells to be changed.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#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. |
Is |
Gets whether the processed cell is dislayed within the Total Footer. |
Visible |
Gets the row’s visible index. |
The event data class exposes the following methods:
Method | Description |
---|---|
Get |
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