aspnet-devexpress-dot-web-ec0c5361.md
Provides data for the ASPxGridView.HtmlRowCreated and ASPxGridView.HtmlRowPrepared events.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public class ASPxGridViewTableRowEventArgs :
ASPxGridViewItemEventArgs
Public Class ASPxGridViewTableRowEventArgs
Inherits ASPxGridViewItemEventArgs
ASPxGridViewTableRowEventArgs is the data class for the following events:
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:
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;
}
Protected Sub ASPxGridView1_HtmlRowPrepared(ByVal sender As Object,_
ByVal e As DevExpress.Web.ASPxGridViewTableRowEventArgs)_
Handles grid.HtmlRowPrepared
If e.RowType = GridViewRowType.Data Then
Dim budget As Integer = Convert.ToInt32(e.GetValue("Budget"))
If budget < 100000 Then
e.Row.ForeColor = System.Drawing.Color.Red
End If
End If
End Sub
Object EventArgs ASPxGridItemEventArgs ASPxGridViewItemEventArgs ASPxGridViewTableRowEventArgs
See Also