Skip to main content
A newer version of this page is available. .
Tab

ASPxGridViewTableDataCellEventArgs Class

Provides data for the ASPxGridView.HtmlDataCellPrepared event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public class ASPxGridViewTableDataCellEventArgs :
    ASPxGridViewItemEventArgs

Example

In this example, the ASPxGridView.HtmlDataCellPrepared event is handled to highlight the Budget column’s cells whose values are less than 100,000.

The image below shows the result:

HtmlDataCellPrepared

protected void ASPxGridView1_HtmlDataCellPrepared(object sender,
    DevExpress.Web.ASPxGridViewTableDataCellEventArgs e) {
    if (e.DataColumn.FieldName != "Budget") return;
    if (Convert.ToInt32(e.CellValue) < 100000)
        e.Cell.BackColor = System.Drawing.Color.LightCyan;
}
See Also