how to change gridview cell color based on cell item in DevExpress
<p>My ASPxGridView is loading massive data from the Database. Every time there is a new data load on the grid, I would each Cellstyle color to Display the BackColor according to resource from Database.</p>

<p>I will try to clarify I want to achieve here below: </p>

<p><strong>This is what I tried.</strong> It's Working but all the rest of the rows continue to be System.Drawing.Color.Red.That I don't want to see.</p>

<pre><code>protected void ASPxGridViewTicketList_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridViewColumnDataEventArgs e)
    {

        if (e.Column.Caption == "Status")
        {

            Object is_priority = e.GetListSourceFieldValue("ispriority");

            if (is_priority.ToString() == "1")
            {
                 e.Column.CellStyle.BackColor = System.Drawing.Color.Red;

            }
            else
            {
                e.Column.CellStyle.BackColor = System.Drawing.Color.AliceBlue;

            }


        }

    }
</code></pre>

<p>Do you have a solution for that? Thank you!</p>

<p>Here is an Illustration: </p>

<ol>
<li>I would like to stop the cooling of the color over and over while there is a condition state that if == 1 then RED else White. In this illustration, There is only <strong>1 row that must be RED</strong> and the others to stay white. But it's not working.</li>
</ol>

<p><a href="https://i.stack.imgur.com/TS55X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TS55X.png" alt="enter image description here"></a></p>