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

  • SEARCH
  • Home
  • 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 879015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:51:36+00:00 2026-05-15T11:51:36+00:00

Hopefully simple question: I’m trying to set the alternatingItemColors on a datagrid via some

  • 0

Hopefully simple question: I’m trying to set the alternatingItemColors on a datagrid via some values that I set in a CSS file but nothing seems to work.

the CSS file looks something like this:

.FACS0 {color: #B0B0B0;}

.SACS0 {color: #A6A6A6;}

.AICS0
{
    alternatingItemColors: #B0B0B0, #A6A6A6;
}

I tried a variety of different things. First I tried to load AICS0 directly, i.e.

dataGrid.setStyle("alternatingItemColors", "AICS0");

but this leads to a run time error

TypeError: Error #1034: Type Coercion
failed: cannot convert “AICS0” to
Array.

I then tried

dataGrid.setStyle("alternatingItemColors", ["FACS0", "SACS0"]);

this runs fine but all rows are set to black.

Note: this

dataGrid.setStyle("alternatingItemColors", [0xFF00CC, 0x112200]);

works just fine – unfortunately this won’t work for me, i.e. I need to be able to load data from a CSS file.

thank you!

  • 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-15T11:51:37+00:00Added an answer on May 15, 2026 at 11:51 am

    Use the styleName property

    dataGrid.styleName = "AICS0"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully this is a simple question but i need to verify that my assumption
I have a hopefully simple question, but I have been trying to figure this
I imagine that this is a simple question, but I'm getting some strange results
Second question of the day but hopefully simple, I just need to change the
This is a (hopefully) really simple question - I have been told recently that
This is probably (hopefully) a pretty simple question, but I can't seem to get
I have a quick and hopefully simple question that I hope someone can help
Hopefully a simple question - apologies if it's already been answered but nothing came
Hopefully a very simple question. But I'm using Code First with an MVC app
I have a quick (hopefully simple) question. I have some information stored in a

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.