I'd like the HighlightRowStyle not to change ForeColor

Originally Posted 18 November 2011, 9:29 am EST

  • Originally Posted 18 November 2011, 9:29 am EST

    Hi.

    I use the records colorization in entire grid.
    But when current record, the colorization of this record discards due to HighlightRowStyle.
    I wand only the BackColor of the HighlightRowStyle have effect, but ForColor to be intact.
    I use the code:

    grdMain.HighlightRowStyle.BackColor = HIGHLIGHTROW_BACK_COLOR
    grdMain.HighlightRowStyle.ForeColor = HIGHLIGHTROW_FORE_COLOR

    MarqueeStyle is set to 4 at designtime.
    How can I turn off the HighlightRowStyle's ForeColor?

    Thanks in advance.

    In the picture - if the first row is clicked the red ForeColor is discarded.
    2011/11/Pic1.gif
  • Reply

    HI,

    I have tried to implement the same in the sample below, in such a case if i keep Highlightback color as Red, it retains the forecolor,can you check the attached sample and modify it and share your observations.

    Regards
    ~Gatim
    2011/12/Change_cell_style_(2).zip
  • Reply

    Modified.
    2011/12/Change_cell_style.zip
  • Reply

    Can someone help me?
    Is it possible not to change the forecolor while current record changing?
    Thanks.
  • Reply

    HI,

    There is a similar issue escalated to the concerned team, however still there are no updates from their side. I have mailed them again for an update

    I would let you know as soon as I get one.

    Regards
    ~Gatim
  • Reply

    Hi,

    Setting TDBGrid1.HighlightRowStyle.ForeColor = RowStyle.ForeColor in the FetchRowStyle event should be sufficient to implement the same

    I've modified a sample to show it.

    Regards,
    ~Gatim
    2012/01/Change_cell_style_Fixed.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels