The Code Project View our sponsorsClick here for Dundas Software's TCP/IP Development KitAdvertise on the CodeProject
Home >> Misc. Libraries and Projects >> Code Projects

The Grid Control
By Chris Maunder, Ken Bertelson, Mario Zucca, Fred Ackers

The grid is a fully featured control for displaying tabular data. There are MFC and ATL versions that run on everything from CE to Windows 2000 
 VC++ 5.0-6.0, NT 4.0, Win95/98, MFC
 Posted 13 May 2000
 Updated 6 June 2000
Articles by this author
Send to a friend
Printer friendly version
Home Latest updates Submit your article About Us Advertise on the Code Project Contact us Discussion Forums
Navigation bar
55 users have rated this article. result:
4.67 out of 5.

Introduction

After pushing the CListCtrl to its limits in trying to display and edit tabulated data I decided what was really needed was a dedicated grid control. I started writing my own grid control from scratch but decided to save time by modifying Joe Willcoxson's free WorldCom grid control. I tore apert his code and rebuilt it from the ground up in order to get it to do all the things I needed. The code has gone through so many modifications that I'm not sure if there is even a single original line of code. In any case Joe's code was a great framework on which to build.

Since the initial release at the beginning of 1998 there have been many, many versions of the grid - some better than others. There have also been ports to CE, an ATL version, and extensions that include a tree-list control.

The list of all those who have contributed and provided fixes, bug reports and suggestions is too huge to mention - thanks everyone!

The Grid Control articles and projects

The Grid

MFC Grid control - Chris Maunder
A fully featured grid control for displaying tabular data that is derived from CWnd

Plug-in cell types

Tree control and Buttons for MFC Grid control - Ken Bertelson
A set of classes derived from CGridCtrl that embed a tree control, button controls, and virtual cells within the grid

Using comboboxes in the MFC Grid Control - Chris Maunder
Explains how to use comboboxes to edit cells in the MFC Grid Control

Adding Hyperlink support to the MFC Grid Control - Fred Ackers and Chris Maunder
A new class that adds hyperlink support to the MFC Grid Control

Using the Grid

Using the Grid Control in a Doc/View framework - Chris Maunder
A simple tutorial that demonstrates how to use the grid control in a doc/view application.

ActiveX version

ATL Grid control - Mario Zucca
A grid control for displaying tabular data, based on Chris Maunder's grid control

[Top] Sign in to vote for this article:     PoorExcellent  

View our sponsorsClick here for Dundas Consulting - experts in MFC, C++, TCP/IP and ASPAdvertise on the CodeProject

Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Use DHTML' from the View dropdown and hit 'Set Options'.
 Keyword Filter
 View   Per page   Messages since
New threadMessages 1 to 25 of 57 (Total: 57)[First] [Prev] [Next] [Last]
Subject 
Author 
Date 
  Linking ?
 Hadi_Rezaie 2:17 26 Jul 01 
  Grid-Control
Unconfirmed/Anonymous posting Anonymous 6:39 23 Jul 01 
  Grid-Control
Unconfirmed/Anonymous posting Anonymous 6:35 23 Jul 01 
  release mode problem
 jayakumar 9:59 25 Jun 01 
  Re: buy a professional grid control!
Unconfirmed/Anonymous posting Ralph 8:38 29 Jun 01 
  Re: buy a professional grid control!
 jayakumar 10:47 29 Jun 01 
  Tool tip problem
 Mark Daniel 8:20 25 Jun 01 
  Re: Tool tip problem
Unconfirmed/Anonymous posting Albrecht Knapp 5:15 10 Jul 01 
  Drag & Drop doesn't work without scrollbars
 Michael Katzmann 17:14 20 Jun 01 
  Duplicate Record Error with ActiveX control
Unconfirmed/Anonymous posting Les Kohlman 20:15 6 Jun 01 
  Bug Found: Won't Load if Resources are in a DLL!
 Steve Wolf 16:08 6 Jun 01 
  Grid Control in CFormView
 markkuk 4:55 30 May 01 
  Re: Grid Control in CFormView
 M.Fletcher 1:39 6 Jun 01 
  Здесь был Мага
Unconfirmed/Anonymous posting Anonymous 5:13 17 May 01 
  CheckBox Cell
 Peter Tewkesbury 7:19 15 May 01 
  Data binding
Unconfirmed/Anonymous posting Frank Bachan 4:39 3 May 01 
  Re: Data binding
 chenzhu 1:50 12 May 01 
  grid + DDE
Unconfirmed/Anonymous posting Anonymous 11:55 24 Apr 01 
  Re: grid + DDE
Unconfirmed/Anonymous posting kamla 12:04 25 Apr 01 
  Background color of a cell
Unconfirmed/Anonymous posting Ana 10:54 20 Mar 01 
  Re: Background color of a cell
Unconfirmed/Anonymous posting cz 4:24 11 Apr 01 
  Autosizing multiline-cell rows
Unconfirmed/Anonymous posting Steve Spencer 7:00 1 Mar 01 
  Re: Autosizing multiline-cell rows
Unconfirmed/Anonymous posting Steve Spencer 9:02 1 Mar 01 
  Sorting question
Unconfirmed/Anonymous posting Danny Roberts 11:07 7 Feb 01 
  CComboBox class doesnt work with the newest version of CGridCtrl (V2.22)
 Alex Koenig 6:51 25 Jan 01 
Last Visit: 12:00 Friday 1st January, 1999[First] [Prev] [Next] [Last]
Home >> Misc. Libraries and Projects >> Code Projects
Advertise on The Code Project
Article content copyright Chris Maunder, Ken Bertelson, Mario Zucca, Fred Ackers, 2000
everything else © CodeProject, 1999-2001.