Beispiel #1
0
    protected void ASPxGridView1_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridViewTableRowEventArgs e)
    {
        int rowCount = Convert.ToInt32(ASPxGridView1.GetGroupSummaryValue(e.VisibleIndex, ASPxGridView1.GroupSummary[0]));

        if (e.RowType == DevExpress.Web.GridViewRowType.Group)
        {
            if (rowCount > 10)
            {
                e.Row.BackColor = System.Drawing.Color.Red;
            }
            else
            {
                e.Row.BackColor = System.Drawing.Color.Green;
            }
        }
    }