Dapfor home  

How do I highlight updating cells?

When a data object notifies the grid about value changing, the grid will automatically update the text in the cell, move and filter the corresponding row and eventually, can highlight the cell. The How to notify the grid from the C++ object? article explains what should be implemented in the data object to fire notification events.

//Turn on cells highlighting
m_Grid.AllowHighlight(true);

//Select the highlighting with a fading effect
m_Grid.GetHighlightSettings().SetMode(Dapfor::GUI::FadingBackColor);
m_Grid.GetHighlightSettings().SetBackColor(RGB(230, 10, 14));

Copyright Dapfor 2007-2009
Generated on Sat Jan 30 15:01:23 2010 for MFCGrid by doxygen 1.5.5