MFC Grid Control does not show cells content
-
Hi All, I'm facing the following strange problem using MFC Grid Control (by Chris Maunder) in my VS2010 MFC application: I've included the CGridCtrl control in a dialog in order to let the user to edit data. It works fine but sometime when I open the dialog the cells content is not displayed but it's covered by the cell background color. Unfortunately I can't solve the problem because it only happens randomly. I tried to call Invalidate() to both the CGridCtrl control and the dialog but it doesn't solve. Any help would be greatly appreciated. Thanks in advance. Gianni
-
Hi All, I'm facing the following strange problem using MFC Grid Control (by Chris Maunder) in my VS2010 MFC application: I've included the CGridCtrl control in a dialog in order to let the user to edit data. It works fine but sometime when I open the dialog the cells content is not displayed but it's covered by the cell background color. Unfortunately I can't solve the problem because it only happens randomly. I tried to call Invalidate() to both the CGridCtrl control and the dialog but it doesn't solve. Any help would be greatly appreciated. Thanks in advance. Gianni
Normally we would tell you to post this question in the forum at the bottom of the article: MFC Grid control 2.27[^], but I think it is ok for you to post it here as well. Although Chris is around all the time, he is obviously very busy so there is no guarantee he is able to answer your question. It is a very old project by now (it is article #8 here on CodeProject!), but I see that Chris did update it not too long ago. In your explanation of the problem, you need to include which version of Windows you are running it on an make sure to mention whether it is 32 or 64 bits. Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty