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 6176255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:04:04+00:00 2026-05-24T00:04:04+00:00

I need to conditional formatting a cell value based on a boolean value in

  • 0

I need to conditional formatting a cell value based on a boolean value in the model.
I have the column col.For(item => item.Detail);
If item.Unfinished I need to apply some css style
How can I do that?

  • 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-24T00:04:05+00:00Added an answer on May 24, 2026 at 12:04 am

    The answer is in my comment to the original post:

    http://groups.google.com/group/mvccontrib-discuss/browse_thread/thread/f872d298cc9d53dc

    column.For(x => x.Surname).Attributes(x => {
        if(x.Item.Surname == "foo") {
            return new Dictionary<string, object> { { "style", "color:red"} };
        }
        return new Dictionary<string, object>();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bunch of unit tests that need to be conditional compiled based
Need some help on how to do conditional formatting on excel 2003. I have
I need the the .ASPX file to behave differently based on a conditional compilation
i am doing conditional formatting on a report in access i need to check
I have this code i have been using....but i need a conditional where it
For a class I need to do a conditional jump to the value $0x55683af8:
I need two conditional rules. Background: http://www.domain.com/.htaccess http://www.domain.com/index.php http://www.domain.com/admin/index.php I have both re-write rules:
I need help writing a conditional where clause. here is my situation: I have
I have a conditional statement that I need some help with the syntax: if
I have a string $VAR=I-UAT; in my shell script code. I need a conditional

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.