Windows Forms controls not rendering properly

Add-in Express™ Support Service
That's what is more important than anything else

Windows Forms controls not rendering properly
 
Joe Zuffoletto




Posts: 21
Joined: 2005-11-07
My C# addin for Word 2003 calls ShowDialog() to display a modal wizard for selecting data from a database. I use a web service for the database call, then display the resulting DataSet in a System.Windows.Forms.DataGrid control. The search executes and the DataSet gets bound to the control, but the data doesn't display in the grid - just the cells and scroll bars. If I drag the window offscreen and back, it updates and shows the contents correctly. If I scroll the grid the data vanishes. If I click on a row the data in that row vanishes. Does anyone have any idea what causes these kinds of update problems and how to fix them? I've noticed that certain other Windows forms controls don't render properly either, such as the CheckedListBox. Thanks.
Posted 07 Nov, 2005 15:52:52 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Joe.

One question. Do you get the same issue if the dialog is not a modal form?
Posted 07 Nov, 2005 17:21:46 Top
Joe Zuffoletto




Posts: 21
Joined: 2005-11-07
Yes. It seems that some Windows forms controls render properly and some don't. I switched to a third-party grid and it works just fine.
Posted 08 Nov, 2005 18:45:43 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Yes, probably you are right.
Posted 09 Nov, 2005 13:54:29 Top