web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to Highlight the Active Records in a Grid

(0) ShareShare
ReportReport
Posted on by 454

Hi,

I Have to highlight the selected active record with Green color. How to achieve this. Give me some code samples to be done on Active Method.

pastedimage1581942295233v1.png

Regards,

Ram.

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    If you really mean active record(s), use ActiveForeColor and ActiveBackColor properties of the grid.

    If you want to set color based on some data in the grid, override displayOption().

    active() method isn't useful in either scenario.

  • Ram Kumar Profile Picture
    454 on at

    Hi Martin,

    If i select some records it must be highlighted. How to use ActiveForeColor and ActiveBackColor properties in the Grid.

    Regards,

    Ram

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Can you please elaborate what you mean by "to select"? I'm not completely sure that we're talking about the same thing.

    What problem do you have with those properties?

  • Ram Kumar Profile Picture
    454 on at

    Hi Martin,

    If i Select one record only in grid it should be Highlighted with Green Color. If i Multiselected it should be also highlighted with Green Color.

    pastedimage1581947811570v1.png

    Regards,

    Ram.

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    I believe I used ActiveForeColor/ActiveBackColor in Axapta 3.0 and the documentation says it can be used in AX 2012, but when I tried it, it doesn't seem to work. I managed to the column's background color displayed for the single currently active record, but the selection of multiple records seems to always use the color from Windows scheme.

  • Ram Kumar Profile Picture
    454 on at

    Hi Martin,

    Yeah It Hasn't work for me, Can You Please Give me some other suggestions through code.

    Regards,

    Ram.

  • Ram Kumar Profile Picture
    454 on at

    Hi,

    I Have to Change the color of the Active Rows in a Grid. I Have Chosen the records as shown in image below. These records are highlighted in blue color by default. My requirement is i have to Highlight those Active Rows with green color. Please provide some suggestions.

    pastedimage1582032830751v1.png

    Regards,

    Ram.

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    You already have another thread for this question: How to Highlight the Active Records in a Grid. Please keep the discussion there.

  • Ram Kumar Profile Picture
    454 on at

    Hi Martin,

    Would you please provide me the solution here.

    Regards,

    Ram.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Ram,

    Why do you have to do that?

    I mean what value do you add by changing the color of the active record?

    To me this sounds like something 'very nice to have' and unless this is absolutely essential, I would doubt the necessity of this modification.

    Can you explain why this is needed?

    Best regards,

    Ludwig

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans