Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6630051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:20:53+00:00 2026-05-25T22:20:53+00:00

when I tryin to color rows for a constraint value it makes because of

  • 0

when I tryin to color rows for a constraint value it makes because of the string value like this:

private void gvTerbiyedekiDispolar_RowStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowStyleEventArgs e)
    {
        GridView View = sender as GridView;
        if (e.RowHandle >= 0)
        {
            string category = View.GetRowCellDisplayText(e.RowHandle, View.Columns["fire"]);
            if (category == "0,10")
            {
                e.Appearance.BackColor = Color.LightGoldenrodYellow;                   
            }               
        }
    }

but if I try to “color the values greater than 0.1” it give me runtime error like this code

 private void gvTerbiyedekiDispolar_RowStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowStyleEventArgs e)
    {
        GridView View = sender as GridView;
        if (e.RowHandle >= 0)
        {
            double category = Convert.ToDouble(View.GetRowCellDisplayText(e.RowHandle, View.Columns["fire"]));
            if (category > 0.10)
            {
                e.Appearance.BackColor = Color.LightGoldenrodYellow;                   
            }               
        }
    }

what should I do ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:20:54+00:00Added an answer on May 25, 2026 at 10:20 pm

    I replaced NULL values to 0 with ISNULL and it is OK.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to change the background color of some rows in a ListBox
I've been trying to figure out this particular object for quite a while and
I have html that looks like <tr> <td align=left><a target=_blank href=/tags/ref_color_tryit.asp?color=Yellow>Yellow</a>&nbsp;</td> <td align=left><a target=_blank
I'm trying to override the highlight color of a JXTable based on the value
For example, I have a model like this: Class Doggy(models.Model): name = models.CharField(u'Name', max_length
I am trying to use query to set color of alternate rows of a
I am trying to to loop through a dataset's value through the rows in
My brain isn't working, I'm trying to grab the first three rows on this
I'm trying to color individual pixels in a BufferedImage (TYPE_INT_RGB) using setRGB() , but
i'm trying to get Color information that i've stored in a text file and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.