This is a small departure from the ATL/WTL threading series I am writing on my wiki. This is a framwework WTL application that utilizes the MS DataGrid Control from Service Pack 6 of Visual Studio 6. This program provides a complete COM interface to the control, similar to what might be used in a commercial application. I decided not to continue with this application in my article series, because you must have access to msdatgrd.ocx and its dependent controls. However, it's chock full of interesting code that I've never seen published in one location.
I was considering using a grid called TrueDBGrid or VS Flex from ComponentOne to continue the series, but I decided to develop a pure WTL grid component so I can move to 64 bit programming without the necessity of dragging along COM.
Here's a screen shot of the WTL code utilizing msdatgrd.ocx: (The names in this grid are purely fictitious and are included in an Access 2007 example from Microsoft.)

Here's the Visual Studo 2008 project:
WTLLearningApp3-2008.7z (63.70 kb)
(You will need access to the msdatgrd.ocx control and its dependencies in order to compile this code.)