WTL and the MS DataGrid Control

by Codewiz51 April 17, 2011 18:16

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.)

Comments are closed

Powered by BlogEngine.NET 1.6.0.0
Theme by Mads Kristensen | Modified by Mooglegiant

Disclaimer

This blog represents my personal hobby, observations and views. It does not represent the views of my employer, clients, especially my wife, children, in-laws, clergy, the dog, the cats or my daughter's horse. In fact, I am not even sure it represents my views when I take the time to reread postings.

© Copyright 2008-2011