Skip to main content
Tab

ASPxGridViewTableRowEventArgs Class

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public class ASPxGridViewTableRowEventArgs :
    ASPxGridViewItemEventArgs

Example

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