Tab
A newer version of this page is available. Switch to the current version.

ASPxGridViewTableRowEventArgs Class

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class ASPxGridViewTableRowEventArgs :
    ASPxGridViewItemEventArgs
Public Class ASPxGridViewTableRowEventArgs
    Inherits ASPxGridViewItemEventArgs

Examples

In this example the ASPxGridView.HtmlRowPrepared event is handled to highlight the departments whose budget is less than $100,000.

The image below shows the result:

exHtmlRowPrepared

protected void ASPxGridView1_HtmlRowPrepared(object sender, ASPxGridViewTableRowEventArgs e) {
    if (e.RowType != GridViewRowType.Data) return;
    int budget = Convert.ToInt32(e.GetValue("Budget"));
    if (budget < 100000)
        e.Row.ForeColor = System.Drawing.Color.Red;
}

Inheritance

See Also